# actix_web::http::header::InvalidHeaderValue - Rust
API documentation for the Rust `InvalidHeaderValue` struct in crate `actix_web`.
Keywords: rust, rustlang, rust-lang, InvalidHeaderValue

# Struct actix_web::http::header::InvalidHeaderValue [−] [src]

    pub struct InvalidHeaderValue { /* fields omitted */ }

A possible error when converting a `HeaderValue` from a string or byte slice.

## Trait Implementations

###

`impl Display for InvalidHeaderValue`

[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

Formats the value using the given formatter. Read more

###

`impl From<InvalidHeaderValue> for Error`

[src]

####

`fn from(err: InvalidHeaderValue) -> Error`

[src]

Performs the conversion.

###

`impl Error for InvalidHeaderValue`

[src]

####

`fn description(&self) -> &str`

[src]

This method is soft-deprecated. Read more

####

`fn cause(&self) -> Option<&Error>`

1.0.0
[src]

The lower-level cause of this error, if any. Read more

###

`impl Debug for InvalidHeaderValue`

[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

Formats the value using the given formatter. Read more

###

`impl ResponseError for InvalidHeaderValue`

[src]

`BadRequest` for `InvalidHeaderValue`

####

`fn error_response(&self) -> HttpResponse`

[src]

Create response for error Read more

## Auto Trait Implementations

###

`impl Send for InvalidHeaderValue`

###

`impl Sync for InvalidHeaderValue`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)