add function for writing an HTTP request to a sink<char>