maxwell v2.2.3 Maxwell.Adapter.Ibrowse

ibrowse 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

Link to this function send_direct(conn)

Send request without chang it’s body formant.

  • conn - %Maxwell.Conn{}

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

Link to this function send_file(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{}}.

Link to this function send_stream(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{}}.