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/Async.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 ::Bedrock::Threading::Async<::Bedrock::Http::Response> send(::std::string)
/*override*/
;
68
69
// vIndex: 10
70
virtual ::Bedrock::Http::Request _createRequest(::std::string) = 0;
71
72
// vIndex: 4
73
virtual
void
processResponse(
::Bedrock::Http::Response
)
/*override*/
;
74
75
// vIndex: 11
76
virtual
void
_recordTelemetry(
::Bedrock::Http::Response
const
&)
const
;
77
78
// vIndex: 12
79
virtual
void
_responseHeaders(
::Bedrock::Http::HeaderCollection
const
&) = 0;
80
81
// vIndex: 13
82
virtual
bool
_parseJsonResponse(
::Json::Value
const
&) = 0;
83
84
// vIndex: 14
85
virtual
void
_parseJsonMetadata(
::Json::Value
const
&) = 0;
86
87
// vIndex: 15
88
virtual ::Json::Value _createMetadata()
const
= 0;
89
90
// vIndex: 16
91
virtual
bool
_tryUseCachedResponse();
92
93
// vIndex: 17
94
virtual
void
_writeToCache(
::Json::Value
const
&,
::Json::Value
const
&)
const
;
95
// NOLINTEND
96
97
public
:
98
// virtual function thunks
99
// NOLINTBEGIN
100
101
// NOLINTEND
102
};
Bedrock::Http::HeaderCollection
Definition
HeaderCollection.h:7
Bedrock::Http::Response
Definition
Response.h:13
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-server
mc
client
services
requests
CachedHttpRequest.h
Generated on Sun Oct 12 2025 06:31:20 for LeviLamina by
1.12.0