Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Do not mention request body type unnecessarily #340 #375

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

Merged
merged 3 commits into from
May 1, 2024
Merged

Do not mention request body type unnecessarily #340 #375

merged 3 commits into from
May 1, 2024

Conversation

palant
Copy link
Contributor

@palant palant commented Apr 28, 2024

Description

This uses generics to avoid mentioning the Body type for requests since we don’t actually care about it. This will cut down on the compile errors to be addressed for #340.

Note that I revered the initially implemented changes to handler.rs and service.rs. The former is being used by integration tests, not specifying the body type there requires specifying it everywhere in the tests – not worth it.

Related Issue

#340

How Has This Been Tested?

Automated tests pass.

Copy link

semanticdiff-com bot commented Apr 28, 2024

Review changes with SemanticDiff.

Analyzed 14 of 14 files.

Filename Status
✔️ src/basic_auth.rs Analyzed
✔️ src/compression.rs Analyzed
✔️ src/compression_static.rs Analyzed
✔️ src/control_headers.rs Analyzed
✔️ src/cors.rs 0.0% smaller
✔️ src/custom_headers.rs Analyzed
✔️ src/fallback_page.rs Analyzed
✔️ src/health.rs Analyzed
✔️ src/https_redirect.rs Analyzed
✔️ src/maintenance_mode.rs Analyzed
✔️ src/metrics.rs Analyzed
✔️ src/redirects.rs 0.0% smaller
✔️ src/rewrites.rs Analyzed
✔️ src/security_headers.rs Analyzed

@palant palant mentioned this pull request Apr 28, 2024
4 tasks
@joseluisq joseluisq added enhancement New feature or request v2 v2 release codebase Related to the project's source code labels May 1, 2024
Copy link
Collaborator

@joseluisq joseluisq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I revered the initially implemented changes to handler.rs and service.rs. The former is being used by integration tests, not specifying the body type there requires specifying it everywhere in the tests – not worth it.

Ok, Let's tackle them later.

@joseluisq joseluisq merged commit 85e3da7 into static-web-server:master May 1, 2024
37 checks passed
@joseluisq joseluisq added this to the v2.31.0 milestone May 1, 2024
@palant palant deleted the body-type branch May 1, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codebase Related to the project's source code enhancement New feature or request v2 v2 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants