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)
generated by LDoc 1.4.6 Last updated 2022-01-22 16:32:56