Http

A HTTP client.

sf::Http is a very simple HTTP client that allows you to communicate with a web server.

You can retrieve web pages, send data to an interactive resource, download a remote file, etc.

Constructors

this
this()

Default constructor

this
this(string host, ushort port)

Construct the HTTP client with the target host.

Destructor

~this
~this()

Destructor

Members

Classes

Request
class Request

Define a HTTP request.

Response
class Response

Define a HTTP response.

Functions

sendRequest
Response sendRequest(Request request, Duration timeout)

Send a HTTP request and return the server's response.

setHost
void setHost(string host, ushort port)

Set the target host.

Variables

sfPtr
sfHttp* sfPtr;
Undocumented in source.

Meta