ReqClient.Channel.Fake (req_client v0.1.17)

Copy Markdown View Source

Summary

Functions

delete(url, opts \\ [])

delete request

delete!(url, opts \\ [])

get(url, opts \\ [])

get request

get!(url, opts \\ [])

get_content_wise_resp_body?(opts \\ [])

head(url, opts \\ [])

head request

head!(url, opts \\ [])

post(url, opts \\ [])

post request

post!(url, opts \\ [])

req(uri, opts \\ [])

Base request method

Options

  • debug
  • method
  • headers %{"header_name1" => ["value1"]}
  • body in string
  • timing

  • other channel-specific options

About response

  • is map todo typespec
  • body: should be binary
  • headers: %{"header_name1" => ["value1"]}
    • header name should in lowercase string
    • value in a list