def http.request_opts

emerging-ezhttp@0.21.0.0 · main.bend:224

import emerging-ezhttp@0.21.0.0/main.bend as EmergingEzhttp
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import emerging-ezhttp@0.21.0.0/src/body.bend as Body
import emerging-ezhttp@0.21.0.0/src/client.bend as Client

224# a request with any method, headers, a body and a timeout in milliseconds
225# that bounds connecting, sending and receiving; with `follow`, a GET follows
226# redirects (at most 10 hops, see src/redirect.bend) and every other method
227# answers a redirect as its response
228def http.request_opts(
229  method: String,
230  url: String,
231  headers: List<&2, Http.Header>,
232  body: Body.Body,
233  timeout_ms: U32,
234  follow: Bool
235) -> IO(Client.Response):
236  Client.client.request.opts(method, url, headers, body, timeout_ms, follow)

Uses (9)

Used by (3)