Skip to content

Commit

Permalink
Remove http_cookies/0, inline it directly in the record definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Hoguin committed Jan 23, 2012
1 parent a297d5e commit 67e5713
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/http.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

-type http_cookies() :: list({binary(), binary()}).
-type http_status() :: non_neg_integer() | binary().
-type http_resp_body() :: iodata() | {non_neg_integer(),
fun(() -> {sent, non_neg_integer()})}.
Expand Down Expand Up @@ -41,7 +40,7 @@
bindings = undefined :: undefined | cowboy_dispatcher:bindings(),
headers = [] :: cowboy_http:headers(),
p_headers = [] :: [any()], %% @todo Improve those specs.
cookies = undefined :: undefined | http_cookies(),
cookies = undefined :: undefined | [{binary(), binary()}],
meta = [] :: [{atom(), any()}],

%% Request body.
Expand Down

0 comments on commit 67e5713

Please sign in to comment.