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
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 ::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
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101
102 // NOLINTEND
103
104public:
105 // virtual function thunks
106 // NOLINTBEGIN
107
108 // NOLINTEND
109};
Definition HeaderCollection.h:7
Definition Response.h:12
Definition CachedHttpRequest.h:17
Definition HttpRequestHandler.h:15
Definition Value.h:16
Definition CachedHttpRequest.h:25
Definition Alias.h:14