A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: tcp/http/http.h
- Revision:
- 129:9c57197fb698
- Parent:
- 127:fcdfbfad8770
- Child:
- 131:774f7f367031
--- a/tcp/http/http.h Mon Mar 11 16:42:45 2019 +0000 +++ b/tcp/http/http.h Wed Mar 13 07:51:38 2019 +0000 @@ -15,14 +15,14 @@ extern void HttpAddInt16AsHex (int value); extern void HttpAddTm (struct tm* ptm); -extern int HttpRequestRead (char *p, int len, char** ppMethod, char** ppPath, char** ppQuery, char** ppLastModified, int* pContentLength); +extern int HttpRequestRead (char *p, int len, char** ppMethod, char** ppPath, char** ppQuery, char** ppLastModified, char** ppCookies, int* pContentLength); -extern char* HttpQuerySplit (char* pQuery, char** ppName, char** ppValue); -extern void HttpQueryUnencode(char* pValue); +extern char* HttpCookiesSplit (char* pCookies, char** ppName, char** ppValue); +extern char* HttpQuerySplit (char* pQuery, char** ppName, char** ppValue); +extern int HttpQueryValueAsInt(char* pValue); +extern void HttpQueryUnencode (char* pValue); -extern int (*HttpRequestFunction)(char *pPath, char* pLastModified); -extern void (*HttpGetFunction )(int todo, char *pQuery); -extern bool (*HttpPostFunction )(int todo, int contentLength, int contentStart, int size, char* pRequestStream, uint32_t positionInRequestStream); +extern void (*HttpRequestFunction)(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete); extern void (*HttpReplyFunction )(int todo); extern bool HttpTrace;