aws_smithy_runtime_api/http.rs
1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6//! HTTP request and response types
7
8mod error;
9mod extensions;
10mod headers;
11mod non_utf8;
12mod request;
13mod response;
14
15// Low-level header parsing shared with `aws-smithy-schema`. Hidden because, apart from
16// `ParseError` below, it is not a stable API: `aws_smithy_http::header` is the supported
17// path for these helpers. It is `pub` rather than `pub(crate)` only so that
18// `aws-smithy-http` and `aws-smithy-schema` can reach one implementation of the parsers
19// instead of maintaining two that can drift.
20#[doc(hidden)]
21pub mod header_parse;
22
23pub use error::HttpError;
24pub use header_parse::ParseError;
25pub use headers::{HeaderValue, Headers, HeadersIter};
26pub use non_utf8::NonUtf8HeaderHandling;
27pub use request::{Request, RequestParts};
28pub use response::{Response, StatusCode};