forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp3.h
More file actions
25 lines (18 loc) · 845 Bytes
/
Copy pathhttp3.h
File metadata and controls
25 lines (18 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include <memory>
#include <optional>
#include "application.h"
#include "session.h"
namespace node::quic {
// Create an HTTP/3 Application implementation for the given session.
// Uses the Application_Options from the session's config for HTTP/3
// specific settings (qpack, max header length, etc.).
std::unique_ptr<Session::Application> CreateHttp3Application(
Session* session, const Session::Application_Options& options);
// Parse HTTP/3 specific session ticket app data. Called from
// Application::ParseTicketData() when the type byte is HTTP3.
// The data includes the type byte prefix.
std::optional<PendingTicketAppData> ParseHttp3TicketData(const uv_buf_t& data);
} // namespace node::quic
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS