maxwell v2.2.2 Maxwell.Adapter.Hackney
hackney
adapter
Summary
Functions
Send request without chang it's body formant
Send file request
Send multipart form request
Send stream request
Functions
Send request without chang it's body formant.
conn
-%Maxwell.Conn{}
Returns {:ok, %Maxwell.Conn{}}
or {:error, reason_term, %Maxwell.Conn{}}
.
Send file request.
conn
-%Maxwell.Conn{}
, the reqbody is{:file, filepath}
. Auto change to chunked mode if reqheaders has%{"transfer-encoding" => "chunked"
Returns {:ok, %Maxwell.Conn{}}
or {:error, reason_term, %Maxwell.Conn{}}
.
Send multipart form request.
conn
-%Maxwell.Conn{}
, the reqbody is{:multipart, form_list}
seeMaxwell.Multipart.encode_form/2
for formlist
Returns {:ok, %Maxwell.Conn{}}
or {:error, reason_term, %Maxwell.Conn{}}
.
Send stream request.
conn
-%Maxwell.Conn{}
, the req_body isStream
. Always chunked mode
Returns {:ok, %Maxwell.Conn{}}
or {:error, reason_term, %Maxwell.Conn{}}
.