WEB - response
The response table returnd when a HTTP response is received.
- Available since: WEB: v1.0.0, LIKO-12: v1.0.0
- Last updated in: WEB: v1.0.0, LIKO-12: v1.0.0
Fields:
response.body
The body of the response.
- Type: string
- Available since: response: v1.0.0, LIKO-12: v1.0.0
- Last updated in: response: v1.0.0, LIKO-12: v1.0.0
response.code
The HTTP status code the response gave.
- Type: string
- Available since: response: v1.0.0, LIKO-12: v1.0.0
- Last updated in: response: v1.0.0, LIKO-12: v1.0.0
response.headers
A table of headers and their values.
- Type: table
- Available since: response: v1.0.0, LIKO-12: v1.0.0
- Last updated in: response: v1.0.0, LIKO-12: v1.0.0
response.headers_raw
A raw string containing the actual headers the server send back.
- Type: string, nil
- Available since: response: v1.0.0, LIKO-12: v1.0.0
- Last updated in: response: v1.0.0, LIKO-12: v1.0.0
This field is nil when the LuaJIT-Request backend is used for the HTTP request.
response.set_cookies
A table of cookies given by the "Set-Cookie" header from the server.
- Type: table
- Available since: response: v1.0.0, LIKO-12: v1.0.0
- Last updated in: response: v1.0.0, LIKO-12: v1.0.0
The object has no methods.