Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
frame.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023, Emna Rekik
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_NET_HTTP_SERVER_FRAME_H_
13#define ZEPHYR_INCLUDE_NET_HTTP_SERVER_FRAME_H_
14
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
43};
44
47#define HTTP_SERVER_HPACK_METHOD 0
48#define HTTP_SERVER_HPACK_PATH 1
49
50#define HTTP_SERVER_FLAG_SETTINGS_ACK 0x1
51#define HTTP_SERVER_FLAG_END_HEADERS 0x4
52#define HTTP_SERVER_FLAG_END_STREAM 0x1
53
54#define HTTP_SERVER_FRAME_HEADER_SIZE 9
55#define HTTP_SERVER_FRAME_LENGTH_OFFSET 0
56#define HTTP_SERVER_FRAME_TYPE_OFFSET 3
57#define HTTP_SERVER_FRAME_FLAGS_OFFSET 4
58#define HTTP_SERVER_FRAME_STREAM_ID_OFFSET 5
59
66} __packed;
67
82};
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
http_settings
HTTP2 settings.
Definition: frame.h:69
@ HTTP_SETTINGS_INITIAL_WINDOW_SIZE
Initial window size.
Definition: frame.h:77
@ HTTP_SETTINGS_MAX_FRAME_SIZE
Max frame size.
Definition: frame.h:79
@ HTTP_SETTINGS_ENABLE_PUSH
Enable push.
Definition: frame.h:73
@ HTTP_SETTINGS_HEADER_TABLE_SIZE
Header table size.
Definition: frame.h:71
@ HTTP_SETTINGS_MAX_HEADER_LIST_SIZE
Max header list size.
Definition: frame.h:81
@ HTTP_SETTINGS_MAX_CONCURRENT_STREAMS
Maximum number of concurrent streams.
Definition: frame.h:75
http_frame_type
HTTP2 frame types.
Definition: frame.h:22
@ HTTP_SERVER_SETTINGS_FRAME
Settings frame.
Definition: frame.h:32
@ HTTP_SERVER_DATA_FRAME
Data frame.
Definition: frame.h:24
@ HTTP_SERVER_PING_FRAME
Ping frame.
Definition: frame.h:36
@ HTTP_SERVER_RST_STREAM_FRAME
Reset stream frame.
Definition: frame.h:30
@ HTTP_SERVER_PUSH_PROMISE_FRAME
Push promise frame.
Definition: frame.h:34
@ HTTP_SERVER_CONTINUATION_FRAME
Continuation frame.
Definition: frame.h:42
@ HTTP_SERVER_PRIORITY_FRAME
Priority frame.
Definition: frame.h:28
@ HTTP_SERVER_GOAWAY_FRAME
Goaway frame.
Definition: frame.h:38
@ HTTP_SERVER_WINDOW_UPDATE_FRAME
Window update frame.
Definition: frame.h:40
@ HTTP_SERVER_HEADERS_FRAME
Headers frame.
Definition: frame.h:26
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
HTTP2 settings field.
Definition: frame.h:63
uint32_t value
Field value.
Definition: frame.h:65
uint16_t id
Field id.
Definition: frame.h:64