diff options
Diffstat (limited to 'samples/net/http_client/src/http_client_types.h')
-rw-r--r-- | samples/net/http_client/src/http_client_types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/net/http_client/src/http_client_types.h b/samples/net/http_client/src/http_client_types.h new file mode 100644 index 000000000..16032607e --- /dev/null +++ b/samples/net/http_client/src/http_client_types.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2017 Intel Corporation + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef _HTTP_CLIENT_TYPES_H_ +#define _HTTP_CLIENT_TYPES_H_ + +#include <net/http_parser.h> +#include "tcp_client.h" +#include "config.h" + +struct http_client_ctx { + struct http_parser parser; + struct http_parser_settings settings; + + struct tcp_client_ctx tcp_ctx; + + uint32_t content_length; + uint32_t processed; + char http_status[HTTP_STATUS_STR_SIZE]; + + uint8_t cl_present:1; + uint8_t body_found:1; +}; + +#endif |