We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new_stream function in SimpleClient already defines authority header, so how to use self-defined authority ?
new_stream
authority
let mut headers: Vec<Header> = vec![ (b":method".to_vec(), method.to_vec()), (b":path".to_vec(), path.to_vec()), (b":authority".to_vec(), self.host.clone()), (b":scheme".to_vec(), self.conn.scheme().as_bytes().to_vec()), ];
eg. get function provides extra_headers, can we put authority header here ?
get
extra_headers
pub fn get(&mut self, path: &[u8], extra_headers: &[Header]) -> HttpResult<Response> { let stream_id = try!(self.request(b"GET", path, extra_headers, None)); self.get_response(stream_id) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
new_stream
function in SimpleClient already definesauthority
header, so how to use self-definedauthority
?eg.
get
function providesextra_headers
, can we putauthority
header here ?The text was updated successfully, but these errors were encountered: