whitecap_protocol (whitecap v0.1.7)
View SourceSummary
Types
-type error() :: {error, reason()}.
-type reason() :: bad_request | not_enough_data | unsupported_feature.
-type verb() :: get | head | post | put.
Functions
-spec bin_patterns() -> bin_patterns().
-spec request(binary()) -> {ok, whitecap_req(), binary()} | error().
-spec request(binary(), bin_patterns()) -> {ok, whitecap_req(), binary()} | error().
-spec request(binary(), undefined | whitecap_req(), bin_patterns()) -> {ok, whitecap_req(), binary()} | error().