generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 221
aws-smithy-http-server - http/1 support #4373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
drganjoo
wants to merge
9
commits into
feature/http-1.x
Choose a base branch
from
fahadzub/http-1.x-server-runtime
base: feature/http-1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
23aa48a
Add aws-smithy-http-server - http@1 support
5659608
Update docs and tests
c1c3faf
Use crate::http
97dd8f7
Use crate::http throughout
6b02aea
fix docs
892eb10
Fix docs and cargo fmt
89edd58
Update gracefulshutdown to support coordinator
a373d35
Remove strategy based traits and use plain branching
9f88057
Removed benches, and other non-necessary examples
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [package] | ||
| name = "aws-smithy-http-server" | ||
| version = "0.65.7" | ||
| version = "0.66.0" | ||
| authors = ["Smithy Rust Server <[email protected]>"] | ||
| edition = "2021" | ||
| license = "Apache-2.0" | ||
|
|
@@ -13,41 +13,84 @@ Server runtime for Smithy Rust Server Framework. | |
| publish = true | ||
|
|
||
| [features] | ||
| aws-lambda = ["dep:lambda_http"] | ||
| default = [] | ||
| unredacted-logging = [] | ||
| request-id = ["dep:uuid"] | ||
| aws-lambda = ["dep:lambda_http"] | ||
|
|
||
| [dependencies] | ||
| aws-smithy-cbor = { path = "../aws-smithy-cbor" } | ||
| aws-smithy-http = { path = "../aws-smithy-http", features = ["rt-tokio"] } | ||
| aws-smithy-json = { path = "../aws-smithy-json" } | ||
| aws-smithy-runtime-api = { path = "../aws-smithy-runtime-api", features = ["http-02x"] } | ||
| aws-smithy-types = { path = "../aws-smithy-types", features = ["http-body-0-4-x", "hyper-0-14-x"] } | ||
| aws-smithy-runtime-api = { path = "../aws-smithy-runtime-api" } | ||
| aws-smithy-types = { path = "../aws-smithy-types", features = [ | ||
| "http-body-1-x", | ||
| ] } | ||
| aws-smithy-xml = { path = "../aws-smithy-xml" } | ||
| aws-smithy-cbor = { path = "../aws-smithy-cbor" } | ||
|
|
||
| bytes = "1.10.0" | ||
| futures-util = { version = "0.3.29", default-features = false } | ||
| http = "0.2.12" | ||
| http-body = "0.4.6" | ||
| hyper = { version = "0.14.26", features = ["server", "http1", "http2", "tcp", "stream"] } | ||
| lambda_http = { version = "0.8.4", optional = true } | ||
|
|
||
| http = "1" | ||
| http-body = "1.0" | ||
| hyper = { version = "1", features = ["server", "http1", "http2"] } | ||
| hyper-util = { version = "0.1", features = [ | ||
| "tokio", | ||
| "server", | ||
| "server-auto", | ||
| "server-graceful", | ||
| "service", | ||
| "http1", | ||
| "http2", | ||
| ] } | ||
| http-body-util = "0.1" | ||
|
|
||
| lambda_http = { version = "0.17", optional = true } | ||
|
|
||
| mime = "0.3.17" | ||
| nom = "7.1.3" | ||
| pin-project-lite = "0.2.14" | ||
| regex = "1.11.1" | ||
| serde_urlencoded = "0.7" | ||
| thiserror = "2" | ||
| tokio = { version = "1.40.0", features = ["full"] } | ||
| tower = { version = "0.4.13", features = ["util", "make"], default-features = false } | ||
| tower-http = { version = "0.3", features = ["add-extension", "map-response-body"] } | ||
| tower = { version = "0.4.13", features = [ | ||
| "util", | ||
| "make", | ||
| ], default-features = false } | ||
| tower-http = { version = "0.6", features = [ | ||
| "add-extension", | ||
| "map-response-body", | ||
| ] } | ||
| tracing = "0.1.40" | ||
| uuid = { version = "1.1.2", features = ["v4", "fast-rng"], optional = true } | ||
|
|
||
| [dev-dependencies] | ||
| aws-smithy-legacy-http-server = { path = "../aws-smithy-legacy-http-server" } | ||
| clap = { version = "4", features = ["derive"] } | ||
| hyperlocal = "0.9" | ||
| hyper014 = { package = "hyper", version = "0.14", features = ["server", "http1", "http2", "stream"] } | ||
| pretty_assertions = "1" | ||
| hyper-util = { version = "0.1", features = [ | ||
| "tokio", | ||
| "client", | ||
| "client-legacy", | ||
| "http1", | ||
| "http2", | ||
| ] } | ||
| rustls-pemfile = "2" | ||
| tokio-rustls = "0.26" | ||
| tracing-subscriber = { version = "0.3", features = ["fmt"] } | ||
| tower = { version = "0.4.13", features = ["util", "make", "limit"] } | ||
| tower-http = { version = "0.6", features = ["timeout"] } | ||
|
|
||
| [package.metadata.docs.rs] | ||
| all-features = true | ||
| targets = ["x86_64-unknown-linux-gnu"] | ||
| cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] | ||
| rustdoc-args = ["--cfg", "docsrs"] | ||
| # End of docs.rs metadata | ||
|
|
||
| [[bench]] | ||
| name = "compare_hyper_versions" | ||
| harness = false | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure I'll find out but...why do we have this dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency along with its benchmark, needs to be removed. While it was initially added to include some AI-generated benchmarking, the generated benchmark needs significant improvement. However, I'd prefer not to delay this PR further by waiting for a proper benchmark framework to be implemented.