Struct hyper::header::AccessControlExposeHeaders
[−]
[src]
pub struct AccessControlExposeHeaders(pub Vec<UniCase<String>>);
Access-Control-Expose-Headers
header, part of
CORS
The Access-Control-Expose-Headers header indicates which headers are safe to expose to the API of a CORS API specification.
ABNF
Access-Control-Expose-Headers = "Access-Control-Expose-Headers" ":" #field-name
Example values
ETag, Content-Length
Examples
// extern crate unicase; use hyper::header::{Headers, AccessControlExposeHeaders}; use unicase::UniCase; let mut headers = Headers::new(); headers.set( AccessControlExposeHeaders(vec![ UniCase("etag".to_owned()), UniCase("content-length".to_owned()) ]) );
// extern crate unicase; use hyper::header::{Headers, AccessControlExposeHeaders}; use unicase::UniCase; let mut headers = Headers::new(); headers.set( AccessControlExposeHeaders(vec![ UniCase("etag".to_owned()), UniCase("content-length".to_owned()) ]) );