buoy_app (buoy v0.2.6)
View SourceSummary
Types
-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}.
-type buoy_url() :: #buoy_url{host :: host(), hostname :: hostname(), path :: path(), port :: inet:port_number(), protocol :: protocol_http()}.
-type host() :: binary().
-type hostname() :: binary().
-type path() :: binary().
-type protocol_http() :: http | https.
Functions
-spec start() -> {ok, [atom()]}.
-spec start(application:start_type(), term()) -> {ok, pid()}.
-spec stop() -> ok | {error, {not_started, buoy}}.
-spec stop(term()) -> ok.