CCF
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
http::HTTP2StreamResponder Class Reference

#include <http2_session.h>

Inherits ccf::http::HTTPResponder.

Public Types

using StreamOnCloseCallback = http2::StreamCloseCB
 

Public Member Functions

 HTTP2StreamResponder (http2::StreamId stream_id_, const std::shared_ptr< http2::ServerParser > &server_parser_)
 
bool send_response (ccf::http_status status_code, ccf::http::HeaderMap &&headers, ccf::http::HeaderMap &&trailers, std::vector< uint8_t > &&body) override
 
bool start_stream (ccf::http_status status, ccf::http::HeaderMap &&headers)
 
bool close_stream (ccf::http::HeaderMap &&trailers)
 
bool stream_data (std::vector< uint8_t > &&data)
 
bool set_on_stream_close_callback (StreamOnCloseCallback cb)
 
- Public Member Functions inherited from ccf::http::HTTPResponder
virtual ~HTTPResponder ()=default
 
bool send_odata_error_response (ccf::ErrorDetails &&error)
 

Member Typedef Documentation

◆ StreamOnCloseCallback

Constructor & Destructor Documentation

◆ HTTP2StreamResponder()

http::HTTP2StreamResponder::HTTP2StreamResponder ( http2::StreamId  stream_id_,
const std::shared_ptr< http2::ServerParser > &  server_parser_ 
)
inline

Member Function Documentation

◆ close_stream()

bool http::HTTP2StreamResponder::close_stream ( ccf::http::HeaderMap &&  trailers)
inline

◆ send_response()

bool http::HTTP2StreamResponder::send_response ( ccf::http_status  status_code,
ccf::http::HeaderMap &&  headers,
ccf::http::HeaderMap &&  trailers,
std::vector< uint8_t > &&  body 
)
inlineoverridevirtual

◆ set_on_stream_close_callback()

bool http::HTTP2StreamResponder::set_on_stream_close_callback ( StreamOnCloseCallback  cb)
inline

◆ start_stream()

bool http::HTTP2StreamResponder::start_stream ( ccf::http_status  status,
ccf::http::HeaderMap &&  headers 
)
inline

◆ stream_data()

bool http::HTTP2StreamResponder::stream_data ( std::vector< uint8_t > &&  data)
inline

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