Starship.Reactor.Conn.Method (Starship v0.0.1) View Source

The struct and type spec for HTTP Methods

Link to this section Summary

Types

HTTP Methods according to HTTP Standards.

t()

A struct defining an HTTP Method and whether or not the method has a body.

Link to this section Types

Specs

method() ::
  :GET | :HEAD | :POST | :PUT | :DELETE | :CONNECT | :OPTIONS | :TRACE | :PATCH

HTTP Methods according to HTTP Standards.

Specs

t() :: %Starship.Reactor.Conn.Method{has_body: boolean(), name: method()}

A struct defining an HTTP Method and whether or not the method has a body.

By default, GET, HEAD, CONNECT, OPTIONS, and TRACE methods have no body, while POST, PUT, DELETE, and PATCH methods have a body.

Link to this section Functions

Specs

connect() :: t()

Specs

delete() :: t()

Specs

get() :: t()

Specs

head() :: t()

Specs

options() :: t()

Specs

patch() :: t()

Specs

post() :: t()

Specs

put() :: t()

Specs

trace() :: t()