Back to index

libsfml  1.6+dfsg2
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
sf::SFML_API::SFML_API Protocol Reference

This class wraps a FTP response, which is basically : More...

#include <Ftp.hpp>

Collaboration diagram for sf::SFML_API::SFML_API:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Status {
  RestartMarkerReply = 110, ServiceReadySoon = 120, DataConnectionAlreadyOpened = 125, OpeningDataConnection = 150,
  Ok = 200, PointlessCommand = 202, SystemStatus = 211, DirectoryStatus = 212,
  FileStatus = 213, HelpMessage = 214, SystemType = 215, ServiceReady = 220,
  ClosingConnection = 221, DataConnectionOpened = 225, ClosingDataConnection = 226, EnteringPassiveMode = 227,
  LoggedIn = 230, FileActionOk = 250, DirectoryOk = 257, NeedPassword = 331,
  NeedAccountToLogIn = 332, NeedInformation = 350, ServiceUnavailable = 421, DataConnectionUnavailable = 425,
  TransferAborted = 426, FileActionAborted = 450, LocalError = 451, InsufficientStorageSpace = 452,
  CommandUnknown = 500, ParametersUnknown = 501, CommandNotImplemented = 502, BadCommandSequence = 503,
  ParameterNotImplemented = 504, NotLoggedIn = 530, NeedAccountToStore = 532, FileUnavailable = 550,
  PageTypeUnknown = 551, NotEnoughMemory = 552, FilenameNotAllowed = 553, InvalidResponse = 1000,
  ConnectionFailed = 1001, ConnectionClosed = 1002, InvalidFile = 1003, Ok = 200,
  Created = 201, Accepted = 202, NoContent = 204, MultipleChoices = 300,
  MovedPermanently = 301, MovedTemporarily = 302, NotModified = 304, BadRequest = 400,
  Unauthorized = 401, Forbidden = 403, NotFound = 404, InternalServerError = 500,
  NotImplemented = 501, BadGateway = 502, ServiceNotAvailable = 503, InvalidResponse = 1000,
  ConnectionFailed = 1001
}
 Enumerate all the valid status codes returned in a FTP response /////////////////////////////////////////////////////////. More...
enum  Method { Get, Post, Head }
 Enumerate the available HTTP methods for a request /////////////////////////////////////////////////////////. More...
enum  Status {
  RestartMarkerReply = 110, ServiceReadySoon = 120, DataConnectionAlreadyOpened = 125, OpeningDataConnection = 150,
  Ok = 200, PointlessCommand = 202, SystemStatus = 211, DirectoryStatus = 212,
  FileStatus = 213, HelpMessage = 214, SystemType = 215, ServiceReady = 220,
  ClosingConnection = 221, DataConnectionOpened = 225, ClosingDataConnection = 226, EnteringPassiveMode = 227,
  LoggedIn = 230, FileActionOk = 250, DirectoryOk = 257, NeedPassword = 331,
  NeedAccountToLogIn = 332, NeedInformation = 350, ServiceUnavailable = 421, DataConnectionUnavailable = 425,
  TransferAborted = 426, FileActionAborted = 450, LocalError = 451, InsufficientStorageSpace = 452,
  CommandUnknown = 500, ParametersUnknown = 501, CommandNotImplemented = 502, BadCommandSequence = 503,
  ParameterNotImplemented = 504, NotLoggedIn = 530, NeedAccountToStore = 532, FileUnavailable = 550,
  PageTypeUnknown = 551, NotEnoughMemory = 552, FilenameNotAllowed = 553, InvalidResponse = 1000,
  ConnectionFailed = 1001, ConnectionClosed = 1002, InvalidFile = 1003, Ok = 200,
  Created = 201, Accepted = 202, NoContent = 204, MultipleChoices = 300,
  MovedPermanently = 301, MovedTemporarily = 302, NotModified = 304, BadRequest = 400,
  Unauthorized = 401, Forbidden = 403, NotFound = 404, InternalServerError = 500,
  NotImplemented = 501, BadGateway = 502, ServiceNotAvailable = 503, InvalidResponse = 1000,
  ConnectionFailed = 1001
}
 Enumerate all the valid status codes returned in a HTTP response /////////////////////////////////////////////////////////. More...

Public Member Functions

 Response (Status Code=InvalidResponse, const std::string &Message="")
 Default constructor.
bool IsOk () const
 Convenience function to check if the response status code means a success.
Status GetStatus () const
 Get the response status code.
const std::string & GetMessage () const
 Get the full message contained in the response.
 DirectoryResponse (Response Resp)
 Default constructor.
const std::string & GetDirectory () const
 Get the directory returned in the response.
 ListingResponse (Response Resp, const std::vector< char > &Data)
 Default constructor.
std::size_t GetCount () const
 Get the number of filenames in the listing.
const std::string & GetFilename (std::size_t Index) const
 Get the Index-th filename in the directory.
 Request (Method RequestMethod=Get, const std::string &URI="/", const std::string &Body="")
 Default constructor.
void SetField (const std::string &Field, const std::string &Value)
 Set the value of a field; the field is added if it doesn't exist.
void SetMethod (Method RequestMethod)
 Set the request method. This parameter is Http::Request::Get by default.
void SetURI (const std::string &URI)
 Set the target URI of the request. This parameter is "/" by default.
void SetHttpVersion (unsigned int Major, unsigned int Minor)
 Set the HTTP version of the request. This parameter is 1.0 by default.
void SetBody (const std::string &Body)
 Set the body of the request. This parameter is optional and makes sense only for POST requests. This parameter is empty by default.
 Response ()
 Default constructor.
const std::string & GetField (const std::string &Field) const
 Get the value of a field.
Status GetStatus () const
 Get the header's status code.
unsigned int GetMajorHttpVersion () const
 Get the major HTTP version number of the response.
unsigned int GetMinorHttpVersion () const
 Get the major HTTP version number of the response.
const std::string & GetBody () const
 Get the body of the response. The body can contain :
 Text ()
 Default constructor (empty text)
 Text (const char *Str)
 Construct the unicode text from any type of string.
 Text (const wchar_t *Str)
 Text (const Uint8 *Str)
 Text (const Uint16 *Str)
 Text (const Uint32 *Str)
 Text (const std::string &Str)
 Text (const std::wstring &Str)
 Text (const Unicode::UTF8String &Str)
 Text (const Unicode::UTF16String &Str)
 Text (const Unicode::UTF32String &Str)
 operator std::string () const
 Operator to cast the text to any type of string.
 operator std::wstring () const
 operator Unicode::UTF8String () const
 operator Unicode::UTF16String () const
 operator const Unicode::UTF32String & () const

Private Types

typedef std::map< std::string,
std::string > 
FieldTable
typedef std::map< std::string,
std::string > 
FieldTable

Private Member Functions

std::string ToString () const
 Get the string representation of the request header.
bool HasField (const std::string &Field) const
 Check if the given field has been defined.
void FromString (const std::string &Data)
 Construct the header from a response string.

Private Attributes

Status myStatus
 Status code returned from the server.
std::string myMessage
 Last message received from the server.
std::string myDirectory
 Directory extracted from the response message.
std::vector< std::string > myFilenames
 Filenames extracted from the data.
FieldTable myFields
 Fields of the header.
Method myMethod
 Method to use for the request.
std::string myURI
 Target URI of the request.
unsigned int myMajorVersion
 Major HTTP version.
unsigned int myMinorVersion
 Minor HTTP version.
std::string myBody
 Body of the request.
sf::Unicode::UTF32String myUTF32String
 UTF-32 unicode text.

Friends

class Http

Detailed Description

This class wraps a FTP response, which is basically :

This class is an abstract definition of a unicode text, it can be converted from and to any kind of string and encoding /////////////////////////////////////////////////////////.

This class wraps an HTTP response, which is basically :

This class wraps an HTTP request, which is basically :

Specialization of FTP response returning a filename lisiting /////////////////////////////////////////////////////////.

Specialization of FTP response returning a directory /////////////////////////////////////////////////////////.

Definition at line 66 of file Ftp.hpp.


Member Typedef Documentation

typedef std::map<std::string, std::string> sf::SFML_API::SFML_API::FieldTable [private]

Definition at line 150 of file Http.hpp.

typedef std::map<std::string, std::string> sf::SFML_API::SFML_API::FieldTable [private]

Definition at line 274 of file Http.hpp.


Member Enumeration Documentation

Enumerate the available HTTP methods for a request /////////////////////////////////////////////////////////.

Enumerator:
Get 

Request in get mode, standard method to retrieve a page.

Post 

Request in post mode, usually to send data to a page.

Head 

Request a page's header only.

Definition at line 61 of file Http.hpp.

        {
            Get,  
            Post, 
            Head  
        };

Enumerate all the valid status codes returned in a FTP response /////////////////////////////////////////////////////////.

Enumerator:
RestartMarkerReply 

Restart marker reply.

ServiceReadySoon 

Service ready in N minutes.

DataConnectionAlreadyOpened 

Data connection already opened, transfer starting.

OpeningDataConnection 

File status ok, about to open data connection.

Ok 

Command ok.

Most common code returned when operation was successful.

PointlessCommand 

Command not implemented.

SystemStatus 

System status, or system help reply.

DirectoryStatus 

Directory status.

FileStatus 

File status.

HelpMessage 

Help message.

SystemType 

NAME system type, where NAME is an official system name from the list in the Assigned Numbers document.

ServiceReady 

Service ready for new user.

ClosingConnection 

Service closing control connection.

DataConnectionOpened 

Data connection open, no transfer in progress.

ClosingDataConnection 

Closing data connection, requested file action successful.

EnteringPassiveMode 

Entering passive mode.

LoggedIn 

User logged in, proceed. Logged out if appropriate.

FileActionOk 

Requested file action ok.

DirectoryOk 

PATHNAME created.

NeedPassword 

User name ok, need password.

NeedAccountToLogIn 

Need account for login.

NeedInformation 

Requested file action pending further information.

ServiceUnavailable 

Service not available, closing control connection.

DataConnectionUnavailable 

Can't open data connection.

TransferAborted 

Connection closed, transfer aborted.

FileActionAborted 

Requested file action not taken.

LocalError 

Requested action aborted, local error in processing.

InsufficientStorageSpace 

Requested action not taken; insufficient storage space in system, file unavailable.

CommandUnknown 

Syntax error, command unrecognized.

ParametersUnknown 

Syntax error in parameters or arguments.

CommandNotImplemented 

Command not implemented.

BadCommandSequence 

Bad sequence of commands.

ParameterNotImplemented 

Command not implemented for that parameter.

NotLoggedIn 

Not logged in.

NeedAccountToStore 

Need account for storing files.

FileUnavailable 

Requested action not taken, file unavailable.

PageTypeUnknown 

Requested action aborted, page type unknown.

NotEnoughMemory 

Requested file action aborted, exceeded storage allocation.

FilenameNotAllowed 

Requested action not taken, file name not allowed.

InvalidResponse 

Response is not a valid FTP one.

Response is not a valid HTTP one.

ConnectionFailed 

Connection with server failed.

ConnectionClosed 

Connection with server closed.

InvalidFile 

Invalid file to upload / download.

Ok 

Command ok.

Most common code returned when operation was successful.

Created 

The resource has successfully been created.

Accepted 

The request has been accepted, but will be processed later by the server.

NoContent 

Sent when the server didn't send any data in return.

MultipleChoices 

The requested page can be accessed from several locations.

MovedPermanently 

The requested page has permanently moved to a new location.

MovedTemporarily 

The requested page has temporarily moved to a new location.

NotModified 

For conditionnal requests, means the requested page hasn't changed and doesn't need to be refreshed.

BadRequest 

The server couldn't understand the request (syntax error)

Unauthorized 

The requested page needs an authentification to be accessed.

Forbidden 

The requested page cannot be accessed at all, even with authentification.

NotFound 

The requested page doesn't exist.

InternalServerError 

The server encountered an unexpected error.

NotImplemented 

The server doesn't implement a requested feature.

BadGateway 

The gateway server has received an error from the source server.

ServiceNotAvailable 

The server is temporarily unavailable (overloaded, in maintenance, ...)

InvalidResponse 

Response is not a valid FTP one.

Response is not a valid HTTP one.

ConnectionFailed 

Connection with server failed.

Definition at line 74 of file Ftp.hpp.

        {
            // 1xx: the requested action is being initiated,
            // expect another reply before proceeding with a new command
            RestartMarkerReply          = 110, 
            ServiceReadySoon            = 120, 
            DataConnectionAlreadyOpened = 125, 
            OpeningDataConnection       = 150, 

            // 2xx: the requested action has been successfully completed
            Ok                    = 200, 
            PointlessCommand      = 202, 
            SystemStatus          = 211, 
            DirectoryStatus       = 212, 
            FileStatus            = 213, 
            HelpMessage           = 214, 
            SystemType            = 215, 
            ServiceReady          = 220, 
            ClosingConnection     = 221, 
            DataConnectionOpened  = 225, 
            ClosingDataConnection = 226, 
            EnteringPassiveMode   = 227, 
            LoggedIn              = 230, 
            FileActionOk          = 250, 
            DirectoryOk           = 257, 

            // 3xx: the command has been accepted, but the requested action
            // is dormant, pending receipt of further information
            NeedPassword       = 331, 
            NeedAccountToLogIn = 332, 
            NeedInformation    = 350, 

            // 4xx: the command was not accepted and the requested action did not take place,
            // but the error condition is temporary and the action may be requested again
            ServiceUnavailable        = 421, 
            DataConnectionUnavailable = 425, 
            TransferAborted           = 426, 
            FileActionAborted         = 450, 
            LocalError                = 451, 
            InsufficientStorageSpace  = 452, 

            // 5xx: the command was not accepted and
            // the requested action did not take place
            CommandUnknown          = 500, 
            ParametersUnknown       = 501, 
            CommandNotImplemented   = 502, 
            BadCommandSequence      = 503, 
            ParameterNotImplemented = 504, 
            NotLoggedIn             = 530, 
            NeedAccountToStore      = 532, 
            FileUnavailable         = 550, 
            PageTypeUnknown         = 551, 
            NotEnoughMemory         = 552, 
            FilenameNotAllowed      = 553, 

            // 10xx: SFML custom codes
            InvalidResponse  = 1000, 
            ConnectionFailed = 1001, 
            ConnectionClosed = 1002, 
            InvalidFile      = 1003  
        };

Enumerate all the valid status codes returned in a HTTP response /////////////////////////////////////////////////////////.

Enumerator:
RestartMarkerReply 

Restart marker reply.

ServiceReadySoon 

Service ready in N minutes.

DataConnectionAlreadyOpened 

Data connection already opened, transfer starting.

OpeningDataConnection 

File status ok, about to open data connection.

Ok 

Command ok.

Most common code returned when operation was successful.

PointlessCommand 

Command not implemented.

SystemStatus 

System status, or system help reply.

DirectoryStatus 

Directory status.

FileStatus 

File status.

HelpMessage 

Help message.

SystemType 

NAME system type, where NAME is an official system name from the list in the Assigned Numbers document.

ServiceReady 

Service ready for new user.

ClosingConnection 

Service closing control connection.

DataConnectionOpened 

Data connection open, no transfer in progress.

ClosingDataConnection 

Closing data connection, requested file action successful.

EnteringPassiveMode 

Entering passive mode.

LoggedIn 

User logged in, proceed. Logged out if appropriate.

FileActionOk 

Requested file action ok.

DirectoryOk 

PATHNAME created.

NeedPassword 

User name ok, need password.

NeedAccountToLogIn 

Need account for login.

NeedInformation 

Requested file action pending further information.

ServiceUnavailable 

Service not available, closing control connection.

DataConnectionUnavailable 

Can't open data connection.

TransferAborted 

Connection closed, transfer aborted.

FileActionAborted 

Requested file action not taken.

LocalError 

Requested action aborted, local error in processing.

InsufficientStorageSpace 

Requested action not taken; insufficient storage space in system, file unavailable.

CommandUnknown 

Syntax error, command unrecognized.

ParametersUnknown 

Syntax error in parameters or arguments.

CommandNotImplemented 

Command not implemented.

BadCommandSequence 

Bad sequence of commands.

ParameterNotImplemented 

Command not implemented for that parameter.

NotLoggedIn 

Not logged in.

NeedAccountToStore 

Need account for storing files.

FileUnavailable 

Requested action not taken, file unavailable.

PageTypeUnknown 

Requested action aborted, page type unknown.

NotEnoughMemory 

Requested file action aborted, exceeded storage allocation.

FilenameNotAllowed 

Requested action not taken, file name not allowed.

InvalidResponse 

Response is not a valid FTP one.

Response is not a valid HTTP one.

ConnectionFailed 

Connection with server failed.

ConnectionClosed 

Connection with server closed.

InvalidFile 

Invalid file to upload / download.

Ok 

Command ok.

Most common code returned when operation was successful.

Created 

The resource has successfully been created.

Accepted 

The request has been accepted, but will be processed later by the server.

NoContent 

Sent when the server didn't send any data in return.

MultipleChoices 

The requested page can be accessed from several locations.

MovedPermanently 

The requested page has permanently moved to a new location.

MovedTemporarily 

The requested page has temporarily moved to a new location.

NotModified 

For conditionnal requests, means the requested page hasn't changed and doesn't need to be refreshed.

BadRequest 

The server couldn't understand the request (syntax error)

Unauthorized 

The requested page needs an authentification to be accessed.

Forbidden 

The requested page cannot be accessed at all, even with authentification.

NotFound 

The requested page doesn't exist.

InternalServerError 

The server encountered an unexpected error.

NotImplemented 

The server doesn't implement a requested feature.

BadGateway 

The gateway server has received an error from the source server.

ServiceNotAvailable 

The server is temporarily unavailable (overloaded, in maintenance, ...)

InvalidResponse 

Response is not a valid FTP one.

Response is not a valid HTTP one.

ConnectionFailed 

Connection with server failed.

Definition at line 176 of file Http.hpp.

        {
            // 2xx: success
            Ok        = 200, 
            Created   = 201, 
            Accepted  = 202, 
            NoContent = 204, 

            // 3xx: redirection
            MultipleChoices  = 300, 
            MovedPermanently = 301, 
            MovedTemporarily = 302, 
            NotModified      = 304, 

            // 4xx: client error
            BadRequest   = 400, 
            Unauthorized = 401, 
            Forbidden    = 403, 
            NotFound     = 404, 

            // 5xx: server error
            InternalServerError = 500, 
            NotImplemented      = 501, 
            BadGateway          = 502, 
            ServiceNotAvailable = 503, 

            // 10xx: SFML custom codes
            InvalidResponse  = 1000, 
            ConnectionFailed = 1001  
        };

Member Function Documentation

Default constructor.

Parameters:
Resp: Source response

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::FromString ( const std::string &  Data) [private]

Construct the header from a response string.

Parameters:
Data: Content of the response's header to parse

/////////////////////////////////////////////////////////

const std::string& sf::SFML_API::SFML_API::GetBody ( ) const

Get the body of the response. The body can contain :

  • the requested page (for GET requests)
  • a response from the server (for POST requests)
  • nothing (for HEAD requests)
  • an error message (in case of an error)
Returns:
The response body

/////////////////////////////////////////////////////////

std::size_t sf::SFML_API::SFML_API::GetCount ( ) const

Get the number of filenames in the listing.

Returns:
Total number of filenames

/////////////////////////////////////////////////////////

const std::string& sf::SFML_API::SFML_API::GetDirectory ( ) const

Get the directory returned in the response.

Returns:
Directory name

/////////////////////////////////////////////////////////

const std::string& sf::SFML_API::SFML_API::GetField ( const std::string &  Field) const

Get the value of a field.

Parameters:
Field: Name of the field to get (case-insensitive)
Returns:
Value of the field, or empty string if not found

/////////////////////////////////////////////////////////

const std::string& sf::SFML_API::SFML_API::GetFilename ( std::size_t  Index) const

Get the Index-th filename in the directory.

Parameters:
Index: Index of the filename to get
Returns:
Index-th filename

/////////////////////////////////////////////////////////

Get the major HTTP version number of the response.

Returns:
Major version number

/////////////////////////////////////////////////////////

const std::string& sf::SFML_API::SFML_API::GetMessage ( ) const

Get the full message contained in the response.

Returns:
The response message

/////////////////////////////////////////////////////////

Get the major HTTP version number of the response.

Returns:
Major version number

/////////////////////////////////////////////////////////

Get the response status code.

Returns:
Status code

/////////////////////////////////////////////////////////

Get the header's status code.

Returns:
Header's status code

/////////////////////////////////////////////////////////

bool sf::SFML_API::SFML_API::HasField ( const std::string &  Field) const [private]

Check if the given field has been defined.

Parameters:
Field: Name of the field to check (case-insensitive)
Returns:
True if the field exists

/////////////////////////////////////////////////////////

Convenience function to check if the response status code means a success.

Returns:
True if status is success (code < 400)

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::ListingResponse ( Response  Resp,
const std::vector< char > &  Data 
)

Default constructor.

Parameters:
Resp: Source response
Data: Data containing the raw listing

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::operator const Unicode::UTF32String & ( ) const
sf::SFML_API::SFML_API::operator std::string ( ) const

Operator to cast the text to any type of string.

Returns:
Converted string

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::operator std::wstring ( ) const
sf::SFML_API::SFML_API::operator Unicode::UTF16String ( ) const
sf::SFML_API::SFML_API::operator Unicode::UTF8String ( ) const
sf::SFML_API::SFML_API::Request ( Method  RequestMethod = Get,
const std::string &  URI = "/",
const std::string &  Body = "" 
)

Default constructor.

Parameters:
RequestMethod: Method to use for the request (Get by default)
URI: Target URI ("/" by default -- index page)
Body: Content of the request's body (empty by default)

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::Response ( Status  Code = InvalidResponse,
const std::string &  Message = "" 
)

Default constructor.

Parameters:
Code: Response status code (InvalidResponse by default)
Message: Response message (empty by default)

/////////////////////////////////////////////////////////

Default constructor.

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::SetBody ( const std::string &  Body)

Set the body of the request. This parameter is optional and makes sense only for POST requests. This parameter is empty by default.

Parameters:
Body: Content of the request body

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::SetField ( const std::string &  Field,
const std::string &  Value 
)

Set the value of a field; the field is added if it doesn't exist.

Parameters:
Field: Name of the field to set (case-insensitive)
Value: Value of the field

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::SetHttpVersion ( unsigned int  Major,
unsigned int  Minor 
)

Set the HTTP version of the request. This parameter is 1.0 by default.

Parameters:
Major: Major version number
Minor: Minor version number

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::SetMethod ( Method  RequestMethod)

Set the request method. This parameter is Http::Request::Get by default.

Parameters:
RequestMethod: Method to use for the request

/////////////////////////////////////////////////////////

void sf::SFML_API::SFML_API::SetURI ( const std::string &  URI)

Set the target URI of the request. This parameter is "/" by default.

Parameters:
URI: URI to request, local to the host

/////////////////////////////////////////////////////////

Default constructor (empty text)

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::Text ( const char *  Str)

Construct the unicode text from any type of string.

Parameters:
Str: String to convert

/////////////////////////////////////////////////////////

sf::SFML_API::SFML_API::Text ( const wchar_t *  Str)
sf::SFML_API::SFML_API::Text ( const Uint8 *  Str)
sf::SFML_API::SFML_API::Text ( const Uint16 *  Str)
sf::SFML_API::SFML_API::Text ( const Uint32 *  Str)
sf::SFML_API::SFML_API::Text ( const std::string &  Str)
sf::SFML_API::SFML_API::Text ( const std::wstring &  Str)
sf::SFML_API::SFML_API::Text ( const Unicode::UTF8String &  Str)
sf::SFML_API::SFML_API::Text ( const Unicode::UTF16String &  Str)
sf::SFML_API::SFML_API::Text ( const Unicode::UTF32String &  Str)
std::string sf::SFML_API::SFML_API::ToString ( ) const [private]

Get the string representation of the request header.

Returns:
String containing the request

/////////////////////////////////////////////////////////


Friends And Related Function Documentation

Http [friend]

Definition at line 127 of file Http.hpp.


Member Data Documentation

std::string sf::SFML_API::SFML_API::myBody [private]

Body of the request.

Body of the response.

Definition at line 160 of file Http.hpp.

std::string sf::SFML_API::SFML_API::myDirectory [private]

Directory extracted from the response message.

Definition at line 207 of file Ftp.hpp.

Fields of the header.

Definition at line 155 of file Http.hpp.

std::vector<std::string> sf::SFML_API::SFML_API::myFilenames [private]

Filenames extracted from the data.

Definition at line 250 of file Ftp.hpp.

Major HTTP version.

Definition at line 158 of file Http.hpp.

std::string sf::SFML_API::SFML_API::myMessage [private]

Last message received from the server.

Definition at line 176 of file Ftp.hpp.

Method to use for the request.

Definition at line 156 of file Http.hpp.

Minor HTTP version.

Definition at line 159 of file Http.hpp.

Status code returned from the server.

Status code.

Definition at line 175 of file Ftp.hpp.

std::string sf::SFML_API::SFML_API::myURI [private]

Target URI of the request.

Definition at line 157 of file Http.hpp.

sf::Unicode::UTF32String sf::SFML_API::SFML_API::myUTF32String [private]

UTF-32 unicode text.

Definition at line 107 of file Unicode.hpp.


The documentation for this protocol was generated from the following files: