aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-18 22:38:26 +0100
committerLoïc Hoguin <[email protected]>2011-03-18 22:38:26 +0100
commit408f167621848e8cc56a184d7e9e5a891fb740a2 (patch)
treed3c5ec4c208431bd0678815262bdef30295af417 /include/http.hrl
parentc6ad0273a826809fcd3d6b47823623ba1c1e5127 (diff)
downloadcowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.tar.gz
cowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.tar.bz2
cowboy-408f167621848e8cc56a184d7e9e5a891fb740a2.zip
Move the reply function to cowboy_http_req.
Diffstat (limited to 'include/http.hrl')
-rw-r--r--include/http.hrl28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/http.hrl b/include/http.hrl
index dc78b34..e66947d 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -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
}).