curl-fuzzer C++ reference
Loading...
Searching...
No Matches
connect_udp_proxy_mock_server.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Max Dymond, <cmeister2@gmail.com>, et al.
3 *
4 * SPDX-License-Identifier: curl
5 */
6
9
10#ifndef PROTO_FUZZER_CONNECT_UDP_PROXY_MOCK_SERVER_H_
11#define PROTO_FUZZER_CONNECT_UDP_PROXY_MOCK_SERVER_H_
12
14
15namespace proto_fuzzer {
16
20class ConnectUdpProxyMockServer final : public MockServer {
21 public:
22 ConnectUdpProxyMockServer() = default;
23 ~ConnectUdpProxyMockServer() override = default;
24
25 ConnectUdpProxyMockServer(const ConnectUdpProxyMockServer&) = delete;
26 ConnectUdpProxyMockServer& operator=(const ConnectUdpProxyMockServer&) = delete;
27
28 void Install(CURL* easy) override;
29};
30
31} // namespace proto_fuzzer
32
33#endif // PROTO_FUZZER_CONNECT_UDP_PROXY_MOCK_SERVER_H_
void Install(CURL *easy) override
Install the socket transport and force an HTTP/3 origin through a fixed plaintext HTTP/1....
MockServer(MultiDrivePolicy drive_policy=MultiDrivePolicy::kPerform)
Construct an idle MockServer with no scripted responses or open peers.
MockConnection and MockServer — the in-process peer that feeds canned response bytes to libcurl over ...