Skip to content

Commit

Permalink
Merge branch 'master' into ferigis.70.wrong_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon authored May 15, 2018
2 parents 91d666b + 8232d1f commit 58a3289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,6 @@ For a more elaborated example on how to use this library, please check [lsl](htt
---

## Contact Us
For **questions** or **general comments** regarding the use of this library,
please use our public [hipchat room](http://inaka.net/hipchat).

If you find any **bugs** or have a **problem** while using this library, please
[open an issue](https://github.com/inaka/sumo_rest/issues/new) in this repo
(or a pull request :)).
Expand Down
7 changes: 5 additions & 2 deletions src/sr_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@

-type binding_name() :: id | atom().

-type http_header_name_lowercase() :: binary().
-type http_header() :: {http_header_name_lowercase(), iodata()}.

-opaque req() ::
#{ body := sr_json:json()
, headers := [{binary(), iodata()}]
, headers := [http_header()]
, path := binary()
, bindings := #{binding_name() => any()}
}.
Expand Down Expand Up @@ -44,7 +47,7 @@ from_cowboy(CowboyReq) ->
body(#{body := Body}) ->
Body.

-spec headers(req()) -> [{binary(), iodata()}].
-spec headers(req()) -> [http_header()].
headers(#{headers := Headers}) ->
Headers.

Expand Down

0 comments on commit 58a3289

Please sign in to comment.