mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Move the reply function to cowboy_http_req.
This commit is contained in:
parent
c6ad0273a8
commit
408f167621
4 changed files with 116 additions and 108 deletions
|
@ -13,17 +13,19 @@
|
|||
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-record(http_req, {
|
||||
listener = undefined :: undefined | atom(), %% todo
|
||||
method = 'GET' :: http_method(),
|
||||
version = {1, 1} :: http_version(),
|
||||
peer = undefined :: undefined | {Address::ip_address(), Port::port_number()},
|
||||
host = undefined :: undefined | path_tokens(), %% todo
|
||||
raw_host = undefined :: undefined | string(), %% todo
|
||||
path = undefined :: undefined | path_tokens(), %% todo
|
||||
raw_path = undefined :: undefined | string(), %% todo
|
||||
qs_vals = undefined :: undefined | bindings(), %% todo
|
||||
raw_qs = undefined :: undefined | string(),
|
||||
bindings = undefined :: undefined | bindings(),
|
||||
headers = [] :: http_headers()
|
||||
%% cookies = undefined :: undefined | http_cookies() %% @todo
|
||||
socket = undefined :: undefined | socket(),
|
||||
transport = undefined :: undefined | module(),
|
||||
connection = keepalive :: keepalive | close,
|
||||
method = 'GET' :: http_method(),
|
||||
version = {1, 1} :: http_version(),
|
||||
peer = undefined :: undefined | {Address::ip_address(), Port::port_number()},
|
||||
host = undefined :: undefined | path_tokens(), %% todo
|
||||
raw_host = undefined :: undefined | string(), %% todo
|
||||
path = undefined :: undefined | path_tokens(), %% todo
|
||||
raw_path = undefined :: undefined | string(), %% todo
|
||||
qs_vals = undefined :: undefined | bindings(), %% todo
|
||||
raw_qs = undefined :: undefined | string(),
|
||||
bindings = undefined :: undefined | bindings(),
|
||||
headers = [] :: http_headers()
|
||||
%% cookies = undefined :: undefined | http_cookies() %% @todo
|
||||
}).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue