aws_smithy_http/
lib.rs

1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/* Automatically managed default lints */
7#![cfg_attr(docsrs, feature(doc_auto_cfg))]
8/* End of automatically managed default lints */
9#![warn(
10    missing_docs,
11    rustdoc::missing_crate_level_docs,
12    unreachable_pub,
13    rust_2018_idioms
14)]
15
16//! Core HTTP primitives for service clients generated by [smithy-rs](https://github.com/smithy-lang/smithy-rs) including:
17//! - HTTP Body implementation
18//! - Endpoint support
19//! - HTTP header deserialization
20//! - Event streams
21//!
22//! | Feature        | Description |
23//! |----------------|-------------|
24//! | `rt-tokio`     | Provides features that are dependent on `tokio` including the `ByteStream::from_path` util |
25//! | `event-stream` | Provides Sender/Receiver implementations for Event Stream codegen. |
26
27#![allow(clippy::derive_partial_eq_without_eq)]
28#![cfg_attr(docsrs, feature(doc_cfg))]
29
30pub mod endpoint;
31// Marked as `doc(hidden)` because a type in the module is used both by this crate and by the code
32// generator, but not by external users. Also, by the module being `doc(hidden)` instead of it being
33// in `rust-runtime/inlineable`, each user won't have to pay the cost of running the module's tests
34// when compiling their generated SDK.
35#[doc(hidden)]
36pub mod futures_stream_adapter;
37pub mod header;
38pub mod label;
39pub mod operation;
40pub mod query;
41#[doc(hidden)]
42pub mod query_writer;
43
44#[cfg(feature = "event-stream")]
45pub mod event_stream;
46
47mod urlencode;