LeviLamina
Loading...
Searching...
No Matches
RequestBuilder.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Bedrock::Http { class Response; }
8namespace Bedrock::Http::Internal { class IRequestBody; }
9namespace Core { class Path; }
10namespace Json { class Value; }
11// clang-format on
12
13namespace Bedrock::Http {
14
16public:
17 // member variables
18 // NOLINTBEGIN
21 // NOLINTEND
22
23#ifdef LL_PLAT_S
24public:
25 // prevent constructor by default
26 RequestBuilder& operator=(RequestBuilder const&);
28
29#else // LL_PLAT_C
30public:
31 // prevent constructor by default
32 RequestBuilder& operator=(RequestBuilder const&);
33
34#endif
35public:
36 // member functions
37 // NOLINTBEGIN
39
40#ifdef LL_PLAT_C
42
43 MCNAPI ::Bedrock::Http::RequestBuilder& body(::gsl::span<uchar> const& binaryData);
44
45 MCNAPI ::Bedrock::Http::RequestBuilder&
46 body(::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody>> body);
47
48 MCNAPI ::Bedrock::Http::RequestBuilder& body(::Core::Path const& file);
49
50 MCNAPI ::Bedrock::Http::RequestBuilder& body(::Json::Value const& json);
51#endif
52
53 MCNAPI ::Bedrock::Http::RequestBuilder& body(::std::string const& plainText);
54
55#ifdef LL_PLAT_C
56 MCNAPI ::Bedrock::Http::RequestBuilder& contentType(::std::string const& contentType);
57
58 MCNAPI ::Bedrock::Http::RequestBuilder&
59 retryPolicy(::std::function<::std::optional<::std::chrono::seconds>(::Bedrock::Http::Response const&)>&& policy);
60#endif
61
62 MCNAPI ::Bedrock::Http::RequestBuilder& url(::std::string const& url);
63
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCNAPI void* $ctor();
71
72#ifdef LL_PLAT_C
73 MCNAPI void* $ctor(::Bedrock::Http::RequestBuilder const&);
74#endif
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCNAPI void $dtor();
81 // NOLINTEND
82};
83
84} // namespace Bedrock::Http
Definition IRequestBody.h:7
Definition RequestBuilder.h:15
MCAPI::Bedrock::Http::RequestBuilder & body(::std::string const &plainText)
MCAPI::Bedrock::Http::RequestBuilder & url(::std::string const &url)
Definition Response.h:7
Definition Path.h:17
Definition Value.h:16
Definition Alias.h:14