mikroSDK Reference Manual
http_client_misc.h
Go to the documentation of this file.
1
31#ifndef _HTTP_CLIENT_MISC_H
32#define _HTTP_CLIENT_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "http/http_client.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//HTTP client related functions
44void httpClientChangeState(HttpClientContext *context,
45 HttpClientState newState);
46
47void httpClientChangeRequestState(HttpClientContext *context,
48 HttpRequestState newState);
49
50error_t httpClientFormatRequestHeader(HttpClientContext *context);
51
52error_t httpClientFormatChunkSize(HttpClientContext *context, size_t length);
53
54error_t httpClientParseStatusLine(HttpClientContext *context, char_t *line,
55 size_t length);
56
57error_t httpClientParseHeaderField(HttpClientContext *context, char_t *line,
58 size_t length);
59
60error_t httpClientParseConnectionField(HttpClientContext *context,
61 const char_t *value);
62
63error_t httpClientParseTransferEncodingField(HttpClientContext *context,
64 const char_t *value);
65
66error_t httpClientParseContentLengthField(HttpClientContext *context,
67 const char_t *value);
68
69error_t httpClientParseChunkSize(HttpClientContext *context, char_t *line,
70 size_t length);
71
72error_t httpClientCheckTimeout(HttpClientContext *context);
73
74//C++ guard
75#ifdef __cplusplus
76}
77#endif
78
79#endif
error_t
Error codes.
Definition error.h:43
HTTP client (HyperText Transfer Protocol)
HttpClientState
HTTP client states.
Definition http_client.h:211
HttpRequestState
HTTP request states.
Definition http_common.h:110
TCP/IP stack core.