| 1 |
> req |
| 2 |
<webfakes_request> |
| 3 |
method: |
| 4 |
get |
| 5 |
url: |
| 6 |
http://127.0.0.1:3000/ |
| 7 |
client: |
| 8 |
127.0.0.1 |
| 9 |
query: |
| 10 |
headers: |
| 11 |
Host: 127.0.0.1:3000 |
| 12 |
User-Agent: It is me, libcurl |
| 13 |
Accept: */* |
| 14 |
Accept-Encoding: deflate, gzip |
| 15 |
fields and methods: |
| 16 |
app # the webfakes_app the request belongs to |
| 17 |
headers # HTTP request headers |
| 18 |
hostname # server hostname, the Host header |
| 19 |
method # HTTP method of request (lowercase) |
| 20 |
path # server path |
| 21 |
protocol # http or https |
| 22 |
query_string # raw query string without '?' |
| 23 |
query # named list of query parameters |
| 24 |
remote_addr # IP address of the client |
| 25 |
url # full URL of the request |
| 26 |
get_header(field) # get a request header |
| 27 |
# see ?webfakes_request for details |
| 28 |
|