LeviLamina
Loading...
Searching...
No Matches
HC_CALL.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/Result.h"
7#include "mc/deps/core/threading/XAsyncOp.h"
8#include "mc/external/lib_http_client/http_alloc_deleter.h"
9
10// auto generated forward declare list
11// clang-format off
12struct XAsyncBlock;
14// clang-format on
15
16struct HC_CALL {
17public:
18 // member functions
19 // NOLINTBEGIN
20 MCAPI ::Result<::std::chrono::seconds> GetRetryAfterHeaderTime();
21
22 MCAPI explicit HC_CALL(uint64);
23
24 MCAPI long PerformAsync(::XAsyncBlock*);
25
26 MCAPI ::Result<bool> ShouldFailFast(uint&);
27
28 MCAPI bool ShouldRetry(uint&);
29 // NOLINTEND
30
31public:
32 // static functions
33 // NOLINTBEGIN
34 MCAPI static ::Result<::std::unique_ptr<::HC_CALL, ::http_alloc_deleter<::HC_CALL>>> Initialize();
35
36 MCAPI static long PerfomAsyncProvider(::XAsyncOp, ::XAsyncProviderData const*);
37
38 MCAPI static void PerformSingleRequest(void*, bool);
39
40 MCAPI static long PerformSingleRequestAsyncProvider(::XAsyncOp, ::XAsyncProviderData const*);
41
42 MCAPI static void PerformSingleRequestComplete(::XAsyncBlock*);
43
44 MCAPI static long ReadRequestBody(::HC_CALL*, uint64, uint64, void*, uchar*, uint64*);
45
46 MCAPI static long ResponseBodyWrite(::HC_CALL*, uchar const*, uint64, void*);
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI void* $ctor(uint64);
53 // NOLINTEND
54
55public:
56 // vftables
57 // NOLINTBEGIN
58 MCAPI static void** $vftable();
59 // NOLINTEND
60};
Definition HC_CALL.h:16
Definition XAsyncBlock.h:10
Definition XAsyncProviderData.h:5