Maxwell.Adapter.Httpc (maxwell v2.4.0) View Source

httpc adapter

Link to this section Summary

Functions

Send request without chang it's body formant.

Send file request.

Send stream request.

Link to this section 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 req_body is {:file, filepath}. Auto change to chunked mode if req_headers has %{"transfer-encoding" => "chunked"

Returns {:ok, %Maxwell.Conn{}} or {:error, reason_term, %Maxwell.Conn{}}.

Send stream request.

  • conn - %Maxwell.Conn{}, the req_body is Stream. Always chunked mode

Returns {:ok, %Maxwell.Conn{}} or {:error, reason_term, %Maxwell.Conn{}}.