Fix formatting

This commit is contained in:
PabloMK7 2024-06-01 23:23:23 +02:00
parent 3e73ebec50
commit 76c58f496e

View file

@ -48,16 +48,29 @@ enum class RequestMethod : u8 {
constexpr u32 TotalRequestMethods = 8; constexpr u32 TotalRequestMethods = 8;
enum class RequestState : u8 { enum class RequestState : u8 {
NotStarted = 0x1, // Request has not started yet. /// Request has not started yet.
ConnectingToServer = 0x5, // Request in progress, connecting to server. NotStarted = 0x1,
SendingRequest = 0x6, // Request in progress, sending HTTP request.
ReceivingResponse = 0x7, // Request in progress, receiving HTTP response and headers. /// Request in progress, connecting to server.
ReceivingBody = 0x8, // Request in progress, receiving HTTP body. The HTTP module may ConnectingToServer = 0x5,
// get stuck in this state if the internal receive buffer gets full.
// Once the user calls ReceiveData it will get unstuck. /// Request in progress, sending HTTP request.
Received = 0x9, // Request is finished and all data has been received. HTTP transitions SendingRequest = 0x6,
// to the Completed state shortly afterwards after some cleanup.
Completed = 0xA, // Request is completed. // Request in progress, receiving HTTP response and headers.
ReceivingResponse = 0x7,
/// Request in progress, receiving HTTP body. The HTTP module may
/// get stuck in this state if the internal receive buffer gets full.
/// Once the user calls ReceiveData it will get unstuck.
ReceivingBody = 0x8,
/// Request is finished and all data has been received. HTTP transitions
/// to the Completed state shortly afterwards after some cleanup.
Received = 0x9,
/// Request is completed.
Completed = 0xA,
}; };
enum class PostDataEncoding : u8 { enum class PostDataEncoding : u8 {