xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/masque/masque_client_tools.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_QUIC_MASQUE_MASQUE_CLIENT_TOOLS_H_
6 #define QUICHE_QUIC_MASQUE_MASQUE_CLIENT_TOOLS_H_
7 
8 #include <string>
9 
10 #include "quiche/quic/core/io/quic_event_loop.h"
11 #include "quiche/quic/masque/masque_client.h"
12 
13 namespace quic {
14 namespace tools {
15 
16 // Sends an HTTP GET request for |url_string|, proxied over the MASQUE
17 // connection represented by |masque_client|. A valid and owned |event_loop|
18 // is required. |disable_certificate_verification| allows disabling verification
19 // of the HTTP server's TLS certificate.
20 bool SendEncapsulatedMasqueRequest(MasqueClient* masque_client,
21                                    QuicEventLoop* event_loop,
22                                    std::string url_string,
23                                    bool disable_certificate_verification,
24                                    int address_family_for_lookup,
25                                    bool dns_on_client);
26 
27 }  // namespace tools
28 }  // namespace quic
29 
30 #endif  // QUICHE_QUIC_MASQUE_MASQUE_CLIENT_TOOLS_H_
31