Skip to content

Commit f5a2cad

Browse files
committed
Add available ivars to the README example
1 parent 9a2646f commit f5a2cad

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818
include EM::HttpServer
1919

2020
def process_http_request
21+
22+
# the http request details are available via the following instance variables:
23+
# @http_protocol
24+
# @http_request_method
25+
# @http_cookie
26+
# @http_if_none_match
27+
# @http_content_type
28+
# @http_path_info
29+
# @http_request_uri
30+
# @http_query_string
31+
# @http_post_content
32+
# @http_headers
33+
2134
response = EM::DelegatedHttpResponse.new(self)
2235
response.status = 200
2336
response.content_type 'text/html'

0 commit comments

Comments
 (0)