|
| | HTTPRequest () |
| |
| | HTTPRequest (uhttp_shared_ptr< HTTPSocket > httpSock) |
| |
| | ~HTTPRequest () |
| |
| void | setMethod (const std::string &value) |
| |
| const char * | getMethod (std::string &methodBuf) |
| |
| bool | isMethod (const std::string &value) |
| |
| bool | isGetRequest () |
| |
| bool | isPutRequest () |
| |
| bool | isPostRequest () |
| |
| bool | isHeadRequest () |
| |
| bool | isDeleteRequest () |
| |
| bool | isUpdateRequest () |
| |
| bool | isSubscribeRequest () |
| |
| bool | isUnsubscribeRequest () |
| |
| bool | isNotifyRequest () |
| |
| void | setURI (const std::string &value) |
| |
| const char * | getURI (std::string &uriBuf) |
| |
| void | getURI (URI &uri) |
| |
| void | setURL (const std::string &value) |
| |
| void | setURL (URL *url) |
| |
| ParameterList * | getParameterList (ParameterList ¶mList) |
| |
| bool | getParameterValue (const std::string &name, std::string *paramBuf) |
| |
| bool | isSOAPAction () |
| |
| void | setRequestHost (const std::string &host) |
| |
| const char * | getRequestHost () |
| |
| void | setRequestPort (int host) |
| |
| int | getRequestPort () |
| |
| void | setSocket (uhttp_shared_ptr< HTTPSocket > socket) |
| |
| uhttp_shared_ptr< HTTPSocket > | getSocket () |
| |
| const char * | getLocalAddress () |
| |
| int | getLocalPort () |
| |
| bool | parseRequestLine (const std::string &lineStr) |
| |
| const char * | getRequestLine (std::string &requestLineBuf) |
| |
| const char * | getHeader (std::string &headerBuf) |
| |
| bool | isKeepAlive () |
| |
| bool | read () |
| |
| HTTP::StatusCode | post (HTTPResponse *httpRes, bool isOnlyHeader=false) |
| |
| HTTPResponse * | post (const std::string &host, int port, HTTPResponse *httpRes, bool isKeepAlive) |
| |
| HTTPResponse * | post (const std::string &host, int port, HTTPResponse *httpRes) |
| |
| HTTPResponse * | post (const std::string &host, int port, bool isKeepAlive) |
| |
| HTTPResponse * | post (const std::string &host, int port) |
| |
| HTTPResponse * | post (bool isKeepAlive=false) |
| |
| void | set (HTTPRequest *httpReq) |
| |
| HTTP::StatusCode | returnResponse (int statusCode) |
| |
| HTTP::StatusCode | returnOK () |
| |
| HTTP::StatusCode | returnBadRequest () |
| |
| HTTP::StatusCode | returnNotFound () |
| |
| const char * | toString (std::string &buf) |
| |
| void | print () |
| |
| | HTTPPacket () |
| |
| | HTTPPacket (HTTPPacket *httpPacket) |
| |
| | HTTPPacket (HTTPSocket *httpSock) |
| |
| | HTTPPacket (uHTTP::InputStream *in) |
| |
| | ~HTTPPacket () |
| |
| void | init () |
| |
| void | setVersion (const std::string &ver) |
| |
| const char * | getVersion () |
| |
| bool | set (uHTTP::InputStream *in, bool onlyHeaders=false) |
| |
| bool | set (uHTTP::Socket *sock, bool onlyHeaders=false) |
| |
| bool | set (HTTPSocket *httpSock) |
| |
| void | set (HTTPPacket *httpPacket) |
| |
| bool | read (HTTPSocket *httpSock) |
| |
| void | setFirstLine (const std::string &value) |
| |
| const char * | getFirstLine () |
| |
| const char * | getFirstLineToken (int num, std::string &tokenBuf) |
| |
| bool | hasFirstLine () |
| |
| size_t | getNHeaders () |
| |
| bool | addHeader (HTTPHeader *header) |
| |
| bool | addHeader (const std::string &name, const std::string &value) |
| |
| HTTPHeader * | getHeader (size_t n) |
| |
| HTTPHeaderList & | getHeaders () |
| |
| HTTPHeader * | getHeader (const std::string &name) |
| |
| void | clearHeaders () |
| |
| bool | hasHeader (const std::string &name) |
| |
| void | setHeader (const std::string &name, const std::string &value) |
| |
| void | setHeader (const std::string &name, int value) |
| |
| void | setHeader (const std::string &name, long value) |
| |
| void | setHeader (const std::string &name, size_t value) |
| |
| void | setHeader (HTTPHeader *header) |
| |
| const char * | getHeaderValue (const std::string &name) |
| |
| void | setStringHeader (const std::string &name, const std::string &value, const char startWith, const char endWith) |
| |
| void | setStringHeader (const std::string &name, const std::string &value) |
| |
| const char * | getStringHeaderValue (const std::string &name, const char startWith, const char endWith, std::string &buf) |
| |
| const char * | getStringHeaderValue (const std::string &name, std::string &buf) |
| |
| void | setIntegerHeader (const std::string &name, int value) |
| |
| void | setLongHeader (const std::string &name, long value) |
| |
| void | setSizetHeader (const std::string &name, size_t value) |
| |
| int | getIntegerHeaderValue (const std::string &name) |
| |
| long | getLongHeaderValue (const std::string &name) |
| |
| size_t | getLongLongHeaderValue (const std::string &name) |
| |
| const char * | getHeaderString (std::string &headerStr) |
| |
| void | setContent (const std::string &data, bool updateWithContentLength=true) |
| |
| void | setContent (std::string &data, bool updateWithContentLength=true) |
| |
| const char * | getContent () |
| |
| bool | hasContent () |
| |
| void | setContentInputStream (uHTTP::InputStream *in) |
| |
| uHTTP::InputStream * | getContentInputStream () |
| |
| bool | hasContentInputStream () |
| |
| void | setContentType (const std::string &type) |
| |
| const char * | getContentType () |
| |
| const char * | getCharSet (std::string &buf) |
| |
| void | setContentLength (size_t len) |
| |
| size_t | getContentLength () |
| |
| bool | hasConnection () |
| |
| void | setConnection (const std::string &value) |
| |
| const char * | getConnection () |
| |
| bool | isCloseConnection () |
| |
| bool | isKeepAliveConnection () |
| |
| bool | hasContentRange () |
| |
| void | setContentRange (long firstPos, long lastPos, long length) |
| |
| void | getContentRange (long range[]) |
| |
| long | getContentRangeFirstPosition () |
| |
| long | getContentRangeLastPosition () |
| |
| long | getContentRangeInstanceLength () |
| |
| void | setCacheControl (const std::string &directive) |
| |
| void | setCacheControl (const std::string &directive, int value) |
| |
| void | setCacheControl (int value) |
| |
| const char * | getCacheControl () |
| |
| void | setUserAgent (const std::string &name) |
| |
| const char * | getUserAgent () |
| |
| void | setAccept (const std::string &name) |
| |
| const char * | getAccept () |
| |
| void | setServer (const std::string &name) |
| |
| const char * | getServer () |
| |
| void | setHost (const std::string &host, int port) |
| |
| void | setHost (const std::string &host) |
| |
| const char * | getHost () |
| |
| void | setDate (HTTPDate *date) |
| |
| const char * | getDate () |
| |
| bool | hasTransferEncoding () |
| |
| void | setTransferEncoding (const std::string &value) |
| |
| const char * | getTransferEncoding () |
| |
| bool | isChunked () |
| |
| void | clear () |
| |