buoy_app (buoy v0.2.6)

View Source

Summary

Types

buoy_resp/0

-type buoy_resp() ::
          #buoy_resp{state :: body | done,
                     body :: undefined | binary(),
                     content_length :: undefined | non_neg_integer() | chunked,
                     headers :: undefined | [binary()],
                     reason :: undefined | binary(),
                     status_code :: undefined | 100..505}.

buoy_url/0

-type buoy_url() ::
          #buoy_url{host :: host(),
                    hostname :: hostname(),
                    path :: path(),
                    port :: inet:port_number(),
                    protocol :: protocol_http()}.

host/0

-type host() :: binary().

hostname/0

-type hostname() :: binary().

path/0

-type path() :: binary().

protocol_http/0

-type protocol_http() :: http | https.

Functions

start()

-spec start() -> {ok, [atom()]}.

start(StartType, StartArgs)

-spec start(application:start_type(), term()) -> {ok, pid()}.

stop()

-spec stop() -> ok | {error, {not_started, buoy}}.

stop(State)

-spec stop(term()) -> ok.