HTTPResponse

Noir.Classes.HTTPResponseClass: NoirClass

Represents a response to a HTTP request.


Noir.Classes.HTTPResponseClass:Init(response)

Initializes HTTP response class objects.

Parameters

  • response: string


Noir.Classes.HTTPResponseClass:JSON()

Attempts to JSON decode the response. This will error if the response cannot be JSON decoded.

Returns

  • any


Noir.Classes.HTTPResponseClass:IsOk()

Returns whether or not the response is ok.

Returns

  • boolean

Last updated