LeviLamina
Loading...
Searching...
No Matches
CachedHttpRequest.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/client/services/requests/HttpRequestHandler.h"
7
#include "mc/deps/core/threading/IAsyncResult.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
namespace
Bedrock::Http {
class
HeaderCollection; }
12
namespace
Bedrock::Http {
class
Request; }
13
namespace
Bedrock::Http {
class
Response; }
14
namespace
Json {
class
Value; }
15
// clang-format on
16
17
class
CachedHttpRequest
:
public
::HttpRequestHandler
{
18
public
:
19
// CachedHttpRequest inner types declare
20
// clang-format off
21
struct
LoadedCache
;
22
// clang-format on
23
24
// CachedHttpRequest inner types define
25
struct
LoadedCache
{
26
public
:
27
// member variables
28
// NOLINTBEGIN
29
::ll::UntypedStorage<8, 16>
mUnk729aef;
30
// NOLINTEND
31
32
public
:
33
// prevent constructor by default
34
LoadedCache
& operator=(
LoadedCache
const
&);
35
LoadedCache
(
LoadedCache
const
&);
36
LoadedCache
();
37
};
38
39
public
:
40
// member variables
41
// NOLINTBEGIN
42
::ll::UntypedStorage<8, 32>
mUnke75de3;
43
::ll::UntypedStorage<8, 32>
mUnk7af363;
44
::ll::UntypedStorage<8, 80>
mUnkbb851d;
45
::ll::UntypedStorage<8, 80>
mUnkdcd461;
46
::ll::UntypedStorage<8, 32>
mUnk99697a;
47
::ll::UntypedStorage<8, 8>
mUnk3619db;
48
::ll::UntypedStorage<8, 24>
mUnk86e2d3;
49
::ll::UntypedStorage<1, 1>
mUnk1f00ca;
50
::ll::UntypedStorage<1, 1>
mUnkb0fe83;
51
::ll::UntypedStorage<1, 1>
mUnk8d43f1;
52
// NOLINTEND
53
54
public
:
55
// prevent constructor by default
56
CachedHttpRequest
& operator=(
CachedHttpRequest
const
&);
57
CachedHttpRequest
(
CachedHttpRequest
const
&);
58
CachedHttpRequest
();
59
60
public
:
61
// virtual functions
62
// NOLINTBEGIN
63
// vIndex: 0
64
virtual
~CachedHttpRequest
()
/*override*/
=
default
;
65
66
// vIndex: 3
67
virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Bedrock::Http::Response>> send(::std::string
68
)
/*override*/
;
69
70
// vIndex: 10
71
virtual ::Bedrock::Http::Request _createRequest(::std::string) = 0;
72
73
// vIndex: 4
74
virtual
void
processResponse(
::Bedrock::Http::Response
)
/*override*/
;
75
76
// vIndex: 11
77
virtual
void
_recordTelemetry(
::Bedrock::Http::Response
const
&)
const
;
78
79
// vIndex: 12
80
virtual
void
_responseHeaders(
::Bedrock::Http::HeaderCollection
const
&) = 0;
81
82
// vIndex: 13
83
virtual
bool
_parseJsonResponse(
::Json::Value
const
&) = 0;
84
85
// vIndex: 14
86
virtual
void
_parseJsonMetadata(
::Json::Value
const
&) = 0;
87
88
// vIndex: 15
89
virtual ::Json::Value _createMetadata()
const
= 0;
90
91
// vIndex: 16
92
virtual
bool
_tryUseCachedResponse();
93
94
// vIndex: 17
95
virtual
void
_writeToCache(
::Json::Value
const
&,
::Json::Value
const
&)
const
;
96
// NOLINTEND
97
98
public
:
99
// destructor thunk
100
// NOLINTBEGIN
101
102
// NOLINTEND
103
104
public
:
105
// virtual function thunks
106
// NOLINTBEGIN
107
108
// NOLINTEND
109
};
Bedrock::Http::HeaderCollection
Definition
HeaderCollection.h:7
Bedrock::Http::Response
Definition
Response.h:12
CachedHttpRequest
Definition
CachedHttpRequest.h:17
HttpRequestHandler
Definition
HttpRequestHandler.h:15
Json::Value
Definition
Value.h:16
CachedHttpRequest::LoadedCache
Definition
CachedHttpRequest.h:25
ll::UntypedStorage
Definition
Alias.h:14
src
mc
client
services
requests
CachedHttpRequest.h
Generated on Sat Apr 26 2025 05:55:22 for LeviLamina by
1.12.0