LeviLamina
Loading...
Searching...
No Matches
WinHttpProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/lib_http_client/Result.h"
7#include "mc/external/lib_http_client/http_alloc_deleter.h"
8#include "mc/external/lib_http_client/http_stl_allocator.h"
9#include "mc/external/lib_http_client/proxy_type.h"
10
11// auto generated forward declare list
12// clang-format off
13struct HC_CALL;
15struct XAsyncBlock;
16namespace xbox::httpclient { class Uri; }
17namespace xbox::httpclient { struct WinHttpWebSocketExports; }
18// clang-format on
19
20namespace xbox::httpclient {
21
23public:
24 // member variables
25 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 WinHttpProvider& operator=(WinHttpProvider const&);
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~WinHttpProvider();
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI long CloseAllConnections();
51
52 MCNAPI long ConnectAsync(
53 ::http_string const& uri,
54 ::http_string const& subprotocol,
55 ::HC_WEBSOCKET_OBSERVER* websocketHandle,
56 ::XAsyncBlock* async
57 );
58
59 MCNAPI ::xbox::httpclient::Result<void*> GetHSession(uint securityProtocolFlags);
60
61 MCNAPI long PerformAsync(::HC_CALL* callHandle, ::XAsyncBlock* async);
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCNAPI static long GetProxyName(
68 ::xbox::httpclient::proxy_type proxyType,
70 ulong& pAccessType,
71 ::http_wstring& pwProxyName
72 );
73
74 MCNAPI static ::xbox::httpclient::WinHttpWebSocketExports GetWinHttpWebSocketExports();
75
76 MCNAPI static ::xbox::httpclient::Result<::std::unique_ptr<
80
81 MCNAPI static long SetGlobalProxyForHSession(void* hSession, char const* proxyUri);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCNAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
96
97} // namespace xbox::httpclient
Definition Uri.h:10
Definition WinHttpProvider.h:22
static MCAPI long GetProxyName(::xbox::httpclient::proxy_type proxyType, ::xbox::httpclient::Uri proxyUri, ulong &pAccessType, ::http_wstring &pwProxyName)
static MCAPI long SetGlobalProxyForHSession(void *hSession, char const *proxyUri)
MCAPI ::xbox::httpclient::Result< void * > GetHSession(uint securityProtocolFlags)
static MCAPI void ** $vftable()
static MCAPI ::xbox::httpclient::WinHttpWebSocketExports GetWinHttpWebSocketExports()
static MCAPI ::xbox::httpclient::Result<::std::unique_ptr< ::xbox::httpclient::WinHttpProvider, ::http_alloc_deleter<::xbox::httpclient::WinHttpProvider > > > Initialize()
MCAPI long PerformAsync(::HC_CALL *callHandle, ::XAsyncBlock *async)
MCAPI long ConnectAsync(::http_string const &uri, ::http_string const &subprotocol, ::HC_WEBSOCKET_OBSERVER *websocketHandle, ::XAsyncBlock *async)
Definition HC_CALL.h:16
Definition HC_WEBSOCKET_OBSERVER.h:14
Definition XAsyncBlock.h:10
Definition http_alloc_deleter.h:6
Definition Alias.h:14