CCF
Loading...
Searching...
No Matches
http_proc.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
6#include "http2_types.h"
7#include "http_builder.h"
8
9#include <algorithm>
10#include <cctype>
11#include <endian.h>
12#include <llhttp/llhttp.h>
13#include <map>
14#include <queue>
15#include <string>
16
17namespace http
18{
20 {
21 public:
22 virtual void handle_request(
23 llhttp_method method,
24 const std::string_view& url,
25 ccf::http::HeaderMap&& headers,
26 std::vector<uint8_t>&& body,
27 int32_t stream_id = http2::DEFAULT_STREAM_ID) = 0;
28 };
29
31 {
32 public:
33 virtual void handle_response(
34 ccf::http_status status,
35 ccf::http::HeaderMap&& headers,
36 std::vector<uint8_t>&& body) = 0;
37 };
38}
Definition http_proc.h:20
virtual void handle_request(llhttp_method method, const std::string_view &url, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body, int32_t stream_id=http2::DEFAULT_STREAM_ID)=0
Definition http_proc.h:31
virtual void handle_response(ccf::http_status status, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body)=0
std::map< std::string, std::string, std::less<> > HeaderMap
Definition http_header_map.h:10
llhttp_status http_status
Definition http_status.h:9
Definition error_reporter.h:6