View Source Flowy.Support.Http.Request (Flowy v0.1.1)

This module defines the behaviour for HTTP responses.

Summary

Types

@type t() :: %Flowy.Support.Http.Request{
  body: map(),
  headers: map(),
  method: atom(),
  opts: map(),
  url: String.t()
}

Functions

Link to this function

build(method, url, headers \\ [], body \\ nil, opts \\ [])

View Source
@spec build(
  method :: atom(),
  url :: String.t(),
  headers :: map(),
  body :: map(),
  opts :: map()
) :: t()

Builds a new request struct.