|  | Home | Libraries | People | FAQ | More | 
Write a header to a stream using a serializer.
          Defined in header <boost/beast/http/write.hpp>
        
template< class SyncWriteStream, bool isRequest, class Body, class Fields> std::size_t write_header( SyncWriteStream& stream, serializer< isRequest, Body, Fields >& sr, error_code& ec);
This function is used to write a header to a stream using a caller-provided HTTP/1 serializer. The call will block until one of the following conditions is true:
http::serializer::is_header_done returns true
            
          This operation is implemented in terms of one or more calls to the stream's
          write_some function.
        
| Name | Description | 
|---|---|
| 
                     | The stream to which the data is to be written. The type must support the SyncWriteStream concept. | 
| 
                     | The serializer to use. | 
| 
                     | Set to indicate what error occurred, if any. | 
The number of bytes written to the stream.
          The implementation will call http::serializer::split with the value true on the serializer passed in.
        
          Convenience header <boost/beast/http.hpp>