mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Remove http_cookies/0, inline it directly in the record definition
This commit is contained in:
parent
a297d5e42b
commit
67e5713b2b
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@
|
||||||
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
%% 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_status() :: non_neg_integer() | binary().
|
||||||
-type http_resp_body() :: iodata() | {non_neg_integer(),
|
-type http_resp_body() :: iodata() | {non_neg_integer(),
|
||||||
fun(() -> {sent, non_neg_integer()})}.
|
fun(() -> {sent, non_neg_integer()})}.
|
||||||
|
@ -41,7 +40,7 @@
|
||||||
bindings = undefined :: undefined | cowboy_dispatcher:bindings(),
|
bindings = undefined :: undefined | cowboy_dispatcher:bindings(),
|
||||||
headers = [] :: cowboy_http:headers(),
|
headers = [] :: cowboy_http:headers(),
|
||||||
p_headers = [] :: [any()], %% @todo Improve those specs.
|
p_headers = [] :: [any()], %% @todo Improve those specs.
|
||||||
cookies = undefined :: undefined | http_cookies(),
|
cookies = undefined :: undefined | [{binary(), binary()}],
|
||||||
meta = [] :: [{atom(), any()}],
|
meta = [] :: [{atom(), any()}],
|
||||||
|
|
||||||
%% Request body.
|
%% Request body.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue