class http_stream_sink - 5cript/attender GitHub Wiki

class http_stream_sink

class http_stream_sink
  : public attender::http_read_sink

Summary

Members Descriptions
public explicit http_stream_sink(std::ostream * 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_stream_sink(std::ostream * 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.

⚠️ **GitHub.com Fallback** ⚠️