Finch.build
You're seeing just the function
build
, go back to Finch module for more information.
Specs
build( Finch.Request.method(), Finch.Request.url(), Finch.Request.headers(), Finch.Request.body() ) :: Finch.Request.t()
Builds an HTTP request to be sent with request/3
or stream/4
.
When making HTTP/1.x requests, it is possible to send the request body in a streaming fashion.
In order to do so, the body
parameter needs to take form of a tuple {:stream, body_stream}
,
where body_stream
is a Stream
. This feature is not yet supported for HTTP/2 requests.