CCF
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
ccf::grpc::BaseStream Class Reference

#include <stream.h>

Inherited by ccf::grpc::Stream< T >.

Protected Member Functions

 BaseStream (const std::shared_ptr< ccf::http::HTTPResponder > &r)
 
 BaseStream (const BaseStream &)=default
 
void start_stream (http_status status=HTTP_STATUS_OK, const http::HeaderMap &headers=default_response_headers)
 
bool stream_data (std::span< const uint8_t > data)
 
bool close_stream (http::HeaderMap &&trailers)
 
void set_on_close_callback (http::StreamOnCloseCallback close_cb)
 

Constructor & Destructor Documentation

◆ BaseStream() [1/2]

ccf::grpc::BaseStream::BaseStream ( const std::shared_ptr< ccf::http::HTTPResponder > &  r)
inlineprotected

◆ BaseStream() [2/2]

ccf::grpc::BaseStream::BaseStream ( const BaseStream )
protecteddefault

Member Function Documentation

◆ close_stream()

bool ccf::grpc::BaseStream::close_stream ( http::HeaderMap &&  trailers)
inlineprotected

◆ set_on_close_callback()

void ccf::grpc::BaseStream::set_on_close_callback ( http::StreamOnCloseCallback  close_cb)
inlineprotected

◆ start_stream()

void ccf::grpc::BaseStream::start_stream ( http_status  status = HTTP_STATUS_OK,
const http::HeaderMap headers = default_response_headers 
)
inlineprotected

◆ stream_data()

bool ccf::grpc::BaseStream::stream_data ( std::span< const uint8_t >  data)
inlineprotected

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