304 #endif // SFML_HTTP_H The requested page has permanently moved to a new location.
The requested page has temporarily moved to a new location.
CSFML_NETWORK_API void sfHttp_destroy(sfHttp *http)
Destroy a Http object.
The server is temporarily unavailable (overloaded, in maintenance, ...)
The gateway server couldn't receive a response from the source server.
#define CSFML_NETWORK_API
The requested page doesn't exist.
Request in get mode, standard method to retrieve a page.
CSFML_NETWORK_API void sfHttpRequest_setField(sfHttpRequest *httpRequest, const char *field, const char *value)
Set the value of a header field of a HTTP request.
The gateway server has received an error from the source server.
sfHttpMethod
Enumerate the available HTTP methods for a request.
The server has sent a part of the resource, as a response to a partial GET request.
CSFML_NETWORK_API void sfHttpRequest_setMethod(sfHttpRequest *httpRequest, sfHttpMethod method)
Set a HTTP request method.
CSFML_NETWORK_API unsigned int sfHttpResponse_getMinorVersion(const sfHttpResponse *httpResponse)
Get the minor HTTP version number of a HTTP response.
CSFML_NETWORK_API sfHttpRequest * sfHttpRequest_create(void)
Create a new HTTP request.
struct sfHttpRequest sfHttpRequest
CSFML_NETWORK_API void sfHttpRequest_setHttpVersion(sfHttpRequest *httpRequest, unsigned int major, unsigned int minor)
Set the HTTP version of a HTTP request.
Response is not a valid HTTP one.
CSFML_NETWORK_API const char * sfHttpResponse_getBody(const sfHttpResponse *httpResponse)
Get the body of a HTTP response.
For conditional requests, means the requested page hasn't changed and doesn't need to be refreshed...
The server doesn't support the requested HTTP version.
The server informs the client that it should clear the view (form) that caused the request to be sent...
Most common code returned when operation was successful.
The request has been accepted, but will be processed later by the server.
CSFML_NETWORK_API void sfHttpResponse_destroy(sfHttpResponse *httpResponse)
Destroy a HTTP response.
CSFML_NETWORK_API unsigned int sfHttpResponse_getMajorVersion(const sfHttpResponse *httpResponse)
Get the major HTTP version number of a HTTP response.
The requested page cannot be accessed at all, even with authentication.
CSFML_NETWORK_API sfHttpStatus sfHttpResponse_getStatus(const sfHttpResponse *httpResponse)
Get the status code of a HTTP reponse.
The requested page can be accessed from several locations.
struct sfHttpResponse sfHttpResponse
The server couldn't understand the request (syntax error)
Sent when the server didn't send any data in return.
Request in post mode, usually to send data to a page.
The server doesn't implement a requested feature.
CSFML_NETWORK_API sfHttpResponse * sfHttp_sendRequest(sfHttp *http, const sfHttpRequest *request, sfTime timeout)
Send a HTTP request and return the server's response.
Request a page's header only.
Connection with server failed.
CSFML_NETWORK_API void sfHttpRequest_setBody(sfHttpRequest *httpRequest, const char *body)
Set the body of a HTTP request.
CSFML_NETWORK_API sfHttp * sfHttp_create(void)
Create a new Http object.
The server can't satisfy the partial GET request (with a "Range" header field)
CSFML_NETWORK_API void sfHttp_setHost(sfHttp *http, const char *host, unsigned short port)
Set the target host of a HTTP object.
The requested page needs an authentication to be accessed.
Request in delete mode, useful for a REST API.
CSFML_NETWORK_API void sfHttpRequest_setUri(sfHttpRequest *httpRequest, const char *uri)
Set a HTTP request URI.
CSFML_NETWORK_API void sfHttpRequest_destroy(sfHttpRequest *httpRequest)
Destroy a HTTP request.
Request in put mode, useful for a REST API.
CSFML_NETWORK_API const char * sfHttpResponse_getField(const sfHttpResponse *httpResponse, const char *field)
Get the value of a field of a HTTP response.
The resource has successfully been created.
sfHttpStatus
Enumerate all the valid status codes for a response.
The server encountered an unexpected error.