Documentation

Net::HttpRequest

Class

Holds the state of an executing HTTP request.

Methods

Starts executing the request. Does nothing if the request has already started.

Returns true if the request has finished execution. This will return true even in the case of an error.

Returns bool

Returns an error message, if there was an error. Otherwise, this returns an empty string. This function is useful in the rare case that ResponseCode() returns 0.

Returns string

Returns the HTTP response code, for example 200 or 404.

Returns int

Gets the value of a specific response header. The key is case insensitive.

Returns string

Gets a dictionary of all response headers.

Returns dictionary@

Returns the response body as a string.

Returns string

Returns the response body as a Json value.

Returns Json::Value@

Returns the response body as a MemoryBuffer.

Returns MemoryBuffer@

Saves the response body to a file. The given path should be an absolute path.