Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

class http_string_sink

5cript edited this page Apr 25, 2021 · 1 revision

class http_string_sink

class http_string_sink
  : public attender::http_read_sink

Summary

Members Descriptions
public explicit http_string_sink(std::string * sink)
public virtual size_type write(const char * data,size_type size)
public virtual size_type write(std::vector< char > const & buffer,size_type amount)

Members


public explicit http_string_sink(std::string * sink)


public virtual size_type write(const char * data,size_type size)

Parameters

  • data The data to write to the sink

  • size The amount of bytes to write to the sink.

Returns: Returns the actual amount of bytes written to the sink.


public virtual size_type write(std::vector< char > const & buffer,size_type amount)

Parameters

  • buffer The data to write to the sink.

  • amount The amount of bytes to write to the sink.

Returns: Returns the actual amount of bytes written to the sink.

Clone this wiki locally