aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'include/http.hrl')
-rw-r--r--include/http.hrl8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/http.hrl b/include/http.hrl
index a36fa93..e0fe4f6 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -13,9 +13,12 @@
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-record(http_req, {
+ %% Transport.
socket = undefined :: undefined | socket(),
transport = undefined :: undefined | module(),
connection = keepalive :: keepalive | close,
+
+ %% Request.
method = 'GET' :: http_method(),
version = {1, 1} :: http_version(),
peer = undefined :: undefined | {Address::ip_address(), Port::port_number()},
@@ -26,6 +29,9 @@
qs_vals = undefined :: undefined | bindings(),
raw_qs = undefined :: undefined | string(),
bindings = undefined :: undefined | bindings(),
- headers = [] :: http_headers()
+ headers = [] :: http_headers(),
%% cookies = undefined :: undefined | http_cookies() %% @todo
+
+ %% Response.
+ resp_state = locked :: locked | waiting | done
}).