RESTinio
Loading...
Searching...
No Matches
restinio::transforms::zlib::body_appender_t< chunked_output_t > Class Referencefinal

#include <zlib.hpp>

Inheritance diagram for restinio::transforms::zlib::body_appender_t< chunked_output_t >:
restinio::transforms::zlib::body_appender_base_t< chunked_output_t, body_appender_t< chunked_output_t > >

Public Types

using base_type_t
Public Types inherited from restinio::transforms::zlib::body_appender_base_t< chunked_output_t, body_appender_t< chunked_output_t > >
using resp_t

Public Member Functions

auto & append (string_view_t input)
 Append data to be compressed.
auto & make_chunk (string_view_t input=string_view_t{})
 Append data to be compressed and adds current zlib transformator output as a new chunk.
void flush ()
 Flushes currently available compressed data with possibly creating new chunk and then flushes target response.
void complete ()
 Complete zlib transformation operation.
Public Member Functions inherited from restinio::transforms::zlib::body_appender_base_t< chunked_output_t, body_appender_t< chunked_output_t > >
 body_appender_base_t (const params_t &params, resp_t &resp)
 body_appender_base_t (const body_appender_base_t &)=delete
body_appender_base_toperator= (const body_appender_base_t &)=delete
body_appender_base_toperator= (body_appender_base_t &&)=delete
 body_appender_base_t (body_appender_base_t &&ba) noexcept
virtual ~body_appender_base_t ()

Private Member Functions

 body_appender_t ()=delete

Additional Inherited Members

Protected Attributes inherited from restinio::transforms::zlib::body_appender_base_t< chunked_output_t, body_appender_t< chunked_output_t > >
std::unique_ptr< zlib_tm_ztransformator
resp_tm_resp

Detailed Description

Definition at line 1178 of file zlib.hpp.

Member Typedef Documentation

◆ base_type_t

Constructor & Destructor Documentation

◆ body_appender_t()

restinio::transforms::zlib::body_appender_t< chunked_output_t >::body_appender_t ( )
privatedelete

Member Function Documentation

◆ append()

Append data to be compressed.

Function only adds data to anderlying zlib stream and it doesn't affect target response right on here.

Definition at line 1197 of file zlib.hpp.

◆ complete()

Complete zlib transformation operation.

Definition at line 1243 of file zlib.hpp.

◆ flush()

Flushes currently available compressed data with possibly creating new chunk and then flushes target response.

Definition at line 1228 of file zlib.hpp.

◆ make_chunk()

Append data to be compressed and adds current zlib transformator output as a new chunk.

Adds data and flushes zlib transformator. Then ready compressed data is taken and used as a new chunk of target response.

Definition at line 1213 of file zlib.hpp.


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