Module jls.net.http.HttpResponse
This class represents an HTTP response.
Class HttpResponse
HttpResponse:new () | Creates a new Response. |
httpResponse:setStatusCode (statusCode[, reasonPhrase]) | Sets the status code for the response. |
Class HttpResponse
The HttpResponse class represents an HTTP response.
The HttpResponse class inherits from HttpMessage.
- HttpResponse:new ()
- Creates a new Response.
- httpResponse:setStatusCode (statusCode[, reasonPhrase])
-
Sets the status code for the response.
Parameters:
- statusCode number the status code.
- reasonPhrase string the reason phrase. (optional)