Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Request.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/http/HeaderCollection.h"
7#include "mc/deps/core/http/Method.h"
8#include "mc/deps/core/http/RequestPriority.h"
9#include "mc/deps/core/http/RetryPolicy.h"
10#include "mc/deps/core/http/Url.h"
11#include "mc/deps/core/threading/Async.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace Bedrock::Http { class Response; }
16namespace Bedrock::Http::Internal { class IRequestBody; }
17namespace Bedrock::Http::Internal { class IResponseBody; }
18// clang-format on
19
20namespace Bedrock::Http {
21
22class Request {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 32, ::Bedrock::Http::Url> mUrl;
27 ::ll::TypedStorage<1, 2, ::Bedrock::Http::Method> mMethod;
28 ::ll::TypedStorage<8, 64, ::Bedrock::Http::HeaderCollection> mHeaders;
29 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody>>> mBody;
30 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IResponseBody>>>
31 mResponseBodyHandler;
32 ::ll::TypedStorage<4, 4, ::Bedrock::Http::RequestPriority> mPriority;
33 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mTimeout;
34 ::ll::TypedStorage<8, 64, ::Bedrock::Http::RetryPolicy> mRetryPolicy;
35 ::ll::TypedStorage<1, 1, bool> mShouldSkipTelemetry;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI Request();
42
44
45 MCNAPI ::Bedrock::Http::Request& operator=(::Bedrock::Http::Request const&);
46
47 MCNAPI ::Bedrock::Threading::Async<::Bedrock::Http::Response> send();
48
49 MCNAPI ~Request();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCNAPI void* $ctor();
56
57 MCNAPI void* $ctor(::Bedrock::Http::Request const& rhs);
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCNAPI void $dtor();
64 // NOLINTEND
65};
66
67} // namespace Bedrock::Http
Definition IRequestBody.h:7
Definition IResponseBody.h:10
Definition Request.h:22
MCAPI void * $ctor()
MCAPI void * $ctor(::Bedrock::Http::Request const &rhs)
MCAPI ::Bedrock::Threading::Async<::Bedrock::Http::Response > send()
MCAPI::Bedrock::Http::Request & operator=(::Bedrock::Http::Request const &)
MCAPI Request(::Bedrock::Http::Request const &rhs)
Definition Response.h:17