MySQL 8.1.0
Source Code Documentation
HttpBuffer Class Reference

a Buffer to send/read from network. More...

#include <http_request.h>


struct  impl

Public Member Functions

 HttpBuffer (HttpBuffer &&)
 ~HttpBuffer ()
void add (const char *data, size_t data_size)
 add a memory buffer. More...
void add_file (int file_fd, off_t offset, off_t size)
 add a file. More...
size_t length () const
 get length of buffer. More...
std::vector< uint8_t > pop_front (size_t length)
 move a subset out from the front of the buffer. More...

Private Member Functions

 HttpBuffer (std::unique_ptr< impl > &&buffer)

Private Attributes

std::unique_ptr< implpImpl_


class HttpRequest

Detailed Description

a Buffer to send/read from network.

  • memory buffer
  • file

wraps evbuffer

Constructor & Destructor Documentation

◆ HttpBuffer() [1/2]

HttpBuffer::HttpBuffer ( HttpBuffer &&  )

◆ ~HttpBuffer()

HttpBuffer::~HttpBuffer ( )

◆ HttpBuffer() [2/2]

HttpBuffer::HttpBuffer ( std::unique_ptr< impl > &&  buffer)

Member Function Documentation

◆ add()

void HttpBuffer::add ( const char *  data,
size_t  data_size 

add a memory buffer.

◆ add_file()

void HttpBuffer::add_file ( int  file_fd,
off_t  offset,
off_t  size 

add a file.

◆ length()

size_t HttpBuffer::length ( ) const

get length of buffer.

◆ pop_front()

std::vector< uint8_t > HttpBuffer::pop_front ( size_t  length)

move a subset out from the front of the buffer.

Friends And Related Function Documentation

◆ HttpRequest

friend class HttpRequest

Member Data Documentation

◆ pImpl_

std::unique_ptr<impl> HttpBuffer::pImpl_

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