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
11namespace Bedrock::Http { class HeaderCollection; }
12namespace Bedrock::Http { class Request; }
13namespace Bedrock::Http { class Response; }
14namespace Json { class Value; }
15// clang-format on
16
18public:
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
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 LoadedCache& operator=(LoadedCache const&);
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
52 // NOLINTEND
53
54public:
55 // prevent constructor by default
56 CachedHttpRequest& operator=(CachedHttpRequest const&);
59
60public:
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
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100
101 // NOLINTEND
102};
Definition HeaderCollection.h:7
Definition Response.h:13
Definition CachedHttpRequest.h:17
Definition HttpRequestHandler.h:15
Definition Value.h:16
Definition CachedHttpRequest.h:25
Definition Alias.h:14