LeviLamina
Loading...
Searching...
No Matches
IRequestBody.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::Http::Internal {
6
7class IRequestBody : public ::std::enable_shared_from_this<::Bedrock::Http::Internal::IRequestBody> {
8public:
9 // IRequestBody inner types declare
10 // clang-format off
11 struct ReadResult;
12 // clang-format on
13
14 // IRequestBody inner types define
15 struct ReadResult {
16 public:
17 // member variables
18 // NOLINTBEGIN
21 // NOLINTEND
22
23 public:
24 // prevent constructor by default
25 ReadResult& operator=(ReadResult const&);
26 ReadResult(ReadResult const&);
27 ReadResult();
28 };
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 0
34 virtual ~IRequestBody();
35
36 // vIndex: 1
37 virtual ::Bedrock::Http::Internal::IRequestBody::ReadResult read(::gsl::span<uchar>) = 0;
38
39 // vIndex: 2
40 virtual uint64 getSize() = 0;
41
42 // vIndex: 3
43 virtual void cancel() = 0;
44
45 // vIndex: 4
46 virtual ::std::string const& getLoggableSource() const = 0;
47
48 // vIndex: 5
49 virtual ::gsl::span<uchar const> getLoggableData() const = 0;
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCFOLD void $dtor();
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61
62 // NOLINTEND
63};
64
65} // namespace Bedrock::Http::Internal
Definition IRequestBody.h:7
Definition Alias.h:14