HTTPObject

Engine/source/app/net/httpObject.h

More...

Protected Types

enum
ParseState {
  ParsingStatusLine 
  ParsingHeader 
  ParsingChunkHeader 
  ProcessingBody 
  ProcessingDone 
}

Private Types

Parent 

Public Static Functions

expandPath(char * dest, const char * path, U32 destSize)

Public Functions

get(const char * hostName, const char * urlName, const char * query)
onDataReceive(U8 * buffer, U32 bufferLen)
onReceive(U8 * buffer, U32 bufferLen)
post(const char * host, const char * path, const char * query, const char * post)
bool
processLine(UTF8 * line)

Detailed Description

Protected Types

ParseState

Enumerator

ParsingStatusLine
ParsingHeader
ParsingChunkHeader
ProcessingBody
ProcessingDone

Private Types

typedef TCPObject Parent 

Protected Attributes

U32 mBytesRemaining 
ParseState mParseState 
U32 mTotalBytes 

Public Attributes

U8 * mBufferSave 
U32 mBufferSaveSize 
bool mChunkedEncoding 
U32 mChunkSize 
U32 mContentLength 
const char * mContentType 
char * mHostName 
char * mPath 
char * mPost 
char * mQuery 
U32 mStatus 
F32 mVersion 

Public Static Functions

expandPath(char * dest, const char * path, U32 destSize)

Public Functions

HTTPObject()

~HTTPObject()

DECLARE_CONOBJECT(HTTPObject )

get(const char * hostName, const char * urlName, const char * query)

onConnected()

Reimplemented from: TCPObject

onConnectFailed()

Reimplemented from: TCPObject

onDataReceive(U8 * buffer, U32 bufferLen)

onDisconnect()

Reimplemented from: TCPObject

onReceive(U8 * buffer, U32 bufferLen)

Reimplemented from: TCPObject

post(const char * host, const char * path, const char * query, const char * post)

processLine(UTF8 * line)

Reimplemented from: TCPObject