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/RequestPriority.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 Method; }
13namespace Bedrock::Http { class Response; }
14namespace Bedrock::Http { class RetryPolicy; }
15namespace Bedrock::Http { struct Url; }
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
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCNAPI Request();
41
43
44 MCNAPI ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody>> getBody() const;
45
46 MCNAPI ::Bedrock::Http::HeaderCollection const& getHeaders() const;
47
48#ifdef LL_PLAT_C
49 MCNAPI ::Bedrock::Http::HeaderCollection& getHeaders();
50#endif
51
52 MCNAPI ::Bedrock::Http::Method getMethod() const;
53
54 MCNAPI ::Bedrock::Http::RequestPriority const& getPriority() const;
55
56 MCNAPI ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IResponseBody>> getResponseBodyHandler() const;
57
58 MCNAPI ::Bedrock::Http::RetryPolicy const& getRetryPolicy() const;
59
60 MCNAPI bool const getShouldSkipTelemetry() const;
61
62 MCNAPI ::std::chrono::seconds getTimeout() const;
63
64 MCNAPI ::Bedrock::Http::Url const& getUrl() const;
65
66 MCNAPI ::Bedrock::Http::Request& operator=(::Bedrock::Http::Request const&);
67
68 MCNAPI ::Bedrock::Threading::Async<::Bedrock::Http::Response> send();
69
70 MCNAPI void setHeaders(::Bedrock::Http::HeaderCollection const& headers);
71
73
74#ifdef LL_PLAT_C
75 MCNAPI void setResponseBodyHandler(
76 ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IResponseBody>> responseBodyHandler
77 );
78#endif
79
80 MCNAPI void setShouldSkipTelemetry(bool shouldSkipTelemetry);
81
82 MCNAPI ~Request();
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor();
89
90 MCNAPI void* $ctor(::Bedrock::Http::Request const& rhs);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI void $dtor();
97 // NOLINTEND
98};
99
100} // namespace Bedrock::Http
Definition HeaderCollection.h:7
Definition IRequestBody.h:7
Definition IResponseBody.h:10
Definition Method.h:7
Definition Request.h:22
MCAPI::Bedrock::Http::RetryPolicy const & getRetryPolicy() const
MCAPI void * $ctor()
MCAPI void setShouldSkipTelemetry(bool shouldSkipTelemetry)
MCAPI void setHeaders(::Bedrock::Http::HeaderCollection const &headers)
MCAPI::Bedrock::Http::Url const & getUrl() const
MCAPI void * $ctor(::Bedrock::Http::Request const &rhs)
MCAPI ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IResponseBody > > getResponseBodyHandler() const
MCAPI::std::chrono::seconds getTimeout() const
MCAPI::Bedrock::Http::HeaderCollection const & getHeaders() const
MCAPI void setMethod(::Bedrock::Http::Method method)
MCAPI::Bedrock::Http::RequestPriority const & getPriority() const
MCAPI ::Bedrock::Threading::Async<::Bedrock::Http::Response > send()
MCAPI bool const getShouldSkipTelemetry() const
MCAPI::Bedrock::Http::Request & operator=(::Bedrock::Http::Request const &)
MCAPI ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody > > getBody() const
MCAPI Request(::Bedrock::Http::Request const &rhs)
MCAPI::Bedrock::Http::Method getMethod() const
Definition Response.h:7
Definition RetryPolicy.h:12
Definition Url.h:7
Definition Alias.h:14