Skip to content
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

docs: Remove tower::util::ServiceExt::oneshot from README.md #20

Merged
merged 1 commit into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet.
### Changed

- Removed `tower::util::ServiceExt::oneshot` from `README.md`, hinting instead merely at serving the app with `hyper::Server`. (#17, #20)

## [0.2.2] - 2022-12-01

Expand Down
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ let app = Router::new()
.layer(SessionLayer::new(MemoryStore::new(), &secret));

// Use hyper to run `app` as service and expose on a local port or socket.

use tower::util::ServiceExt;
tokio_test::block_on(async {
app.oneshot(
axum::http::Request::builder().body(axum::body::Body::empty()).unwrap()
).await.unwrap();
})
```

Receive the token and send same-site requests, using your custom header:
Expand Down Expand Up @@ -213,13 +206,6 @@ let app = Router::new()
);

// Use hyper to run `app` as service and expose on a local port or socket.

use tower::util::ServiceExt;
tokio_test::block_on(async {
app.oneshot(
axum::http::Request::builder().body(axum::body::Body::empty()).unwrap()
).await.unwrap();
})
```

Receive the token and send cross-site requests, using your custom header:
Expand Down