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
28public:
29 // member functions
30 // NOLINTBEGIN
32
33 MCNAPI_C ::Bedrock::Http::RequestBuilder& body(::gsl::span<uchar> const& binaryData);
34
35 MCNAPI_C ::Bedrock::Http::RequestBuilder&
36 body(::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IRequestBody>> body);
37
38 MCNAPI_C ::Bedrock::Http::RequestBuilder& body(::Core::Path const& file);
39
40 MCNAPI_C ::Bedrock::Http::RequestBuilder& body(::Json::Value const& json);
41
42 MCNAPI ::Bedrock::Http::RequestBuilder& body(::std::string const& plainText);
43
44 MCNAPI_C ::Bedrock::Http::RequestBuilder& contentType(::std::string const& contentType);
45
46 MCNAPI_C ::Bedrock::Http::RequestBuilder&
47 retryPolicy(::std::function<::std::optional<::std::chrono::seconds>(::Bedrock::Http::Response const&)>&& policy);
48
49 MCNAPI ::Bedrock::Http::RequestBuilder& url(::std::string const& url);
50
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCNAPI void* $ctor();
58
59 MCNAPI_C void* $ctor(::Bedrock::Http::RequestBuilder const&);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
68
69} // 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:13
Definition Path.h:10
Definition Value.h:16
Definition Alias.h:14