WPILibC++ 2024.3.2
wpi::HttpConnection Class Reference

#include <wpinet/HttpUtil.h>

Public Member Functions

 HttpConnection (std::unique_ptr< wpi::NetworkStream > stream_, int timeout)
 
bool Handshake (const HttpRequest &request, std::string *warnMsg)
 
 operator bool () const
 

Public Attributes

std::unique_ptr< wpi::NetworkStreamstream
 
wpi::raw_socket_istream is
 
wpi::raw_socket_ostream os
 
SmallString< 64 > contentType
 
SmallString< 64 > contentLength
 

Constructor & Destructor Documentation

◆ HttpConnection()

wpi::HttpConnection::HttpConnection ( std::unique_ptr< wpi::NetworkStream stream_,
int  timeout 
)
inline

Member Function Documentation

◆ Handshake()

bool wpi::HttpConnection::Handshake ( const HttpRequest request,
std::string *  warnMsg 
)

◆ operator bool()

wpi::HttpConnection::operator bool ( ) const
inlineexplicit

Member Data Documentation

◆ contentLength

SmallString<64> wpi::HttpConnection::contentLength

◆ contentType

SmallString<64> wpi::HttpConnection::contentType

◆ is

wpi::raw_socket_istream wpi::HttpConnection::is

◆ os

wpi::raw_socket_ostream wpi::HttpConnection::os

◆ stream

std::unique_ptr<wpi::NetworkStream> wpi::HttpConnection::stream

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