aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.hrl
diff options
context:
space:
mode:
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
}).