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
15class RequestBuilder {
16public:
17 // member variables
18 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 RequestBuilder& operator=(RequestBuilder const&);
26 RequestBuilder(RequestBuilder const&);
27 RequestBuilder();
28
29public:
30 // member functions
31 // NOLINTBEGIN
32#ifdef LL_PLAT_C
33 MCNAPI ::Bedrock::Http::RequestBuilder& body(::gsl::span<uchar> const& binaryData);
34
35 MCNAPI ::Bedrock::Http::RequestBuilder&
36 body(::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody>> body);
37
38 MCNAPI ::Bedrock::Http::RequestBuilder& body(::Core::Path const& file);
39
40 MCNAPI ::Bedrock::Http::RequestBuilder& body(::Json::Value const& json);
41#endif
42
43 MCNAPI ::Bedrock::Http::RequestBuilder& body(::std::string const& plainText);
44
45#ifdef LL_PLAT_C
46 MCNAPI ::Bedrock::Http::RequestBuilder& contentType(::std::string const& contentType);
47
48 MCNAPI ::Bedrock::Http::RequestBuilder&
49 retryPolicy(::std::function<::std::optional<::std::chrono::seconds>(::Bedrock::Http::Response const&)>&& policy);
50#endif
51
52 MCNAPI ::Bedrock::Http::RequestBuilder& url(::std::string const& url);
53
55 // NOLINTEND
56
57public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62};
63
64} // namespace Bedrock::Http
Definition IRequestBody.h:7
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:11
Definition Value.h:16
Definition Alias.h:14