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_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
29pub mod endpoint;
30// Marked as `doc(hidden)` because a type in the module is used both by this crate and by the code
31// generator, but not by external users. Also, by the module being `doc(hidden)` instead of it being
32// in `rust-runtime/inlineable`, each user won't have to pay the cost of running the module's tests
33// when compiling their generated SDK.
34#[doc(hidden)]
35pub mod futures_stream_adapter;
36pub mod header;
37pub mod label;
38pub mod operation;
39pub mod query;
40#[doc(hidden)]
41pub mod query_writer;
42
43#[cfg(feature = "event-stream")]
44pub mod event_stream;
45
46mod urlencode;