Trait poem_openapi::types::ToHeader
source · [−]pub trait ToHeader: Type {
fn to_header(&self) -> Option<HeaderValue>;
}
Expand description
Represents a type that can converted to HTTP header.
Required methods
fn to_header(&self) -> Option<HeaderValue>
fn to_header(&self) -> Option<HeaderValue>
Convert this value to HeaderValue
.