Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpConnection Struct Reference

Http connection abstraction holding both the incoming and outgoing messages in an HTTP transaction. More...

#include <HttpConnection.h>

Inheritance diagram for SC::HttpConnection:
SC::HttpAsyncConnectionBase SC::HttpAsyncConnection< ReadQueue, WriteQueue, HeaderBytes, StreamBytes >

Classes

struct  ID
 

Public Member Functions

void reset ()
 Prepare this client for re-use, marking it as Inactive.
 
void setHeaderMemory (Span< char > memory)
 Sets memory for the header.
 
ID getConnectionID () const
 The ID used to find this client in HttpConnectionsPool.
 

Public Attributes

HttpRequest request
 
HttpResponse response
 
AsyncBuffersPool buffersPool
 
AsyncPipeline pipeline
 

Protected Types

enum class  State {
  Inactive ,
  Active
}
 

Protected Attributes

State state = State::Inactive
 
ID connectionID
 
Span< char > headerMemory
 

Friends

struct HttpConnectionsPool
 
struct HttpAsyncServer
 

Detailed Description

Http connection abstraction holding both the incoming and outgoing messages in an HTTP transaction.

Member Function Documentation

◆ getConnectionID()

ID SC::HttpConnection::getConnectionID ( ) const
inline

The ID used to find this client in HttpConnectionsPool.

◆ reset()

void SC::HttpConnection::reset ( )

Prepare this client for re-use, marking it as Inactive.

◆ setHeaderMemory()

void SC::HttpConnection::setHeaderMemory ( Span< char > memory)
inline

Sets memory for the header.


The documentation for this struct was generated from the following file: