Function scgi::read_headers
[−]
[src]
pub fn read_headers<S: Read + Write>(stream: S)
-> Result<(Vec<u8>, BufStream<S>), ScgiError>
Read the headers from the stream.
Returns the vector containing the headers and the tcp_stream
wrapped into a BufferedStream
.
You should use the stream to read the rest of the query and send the response.