http-rs / http-rs/http-types

make Response::new return Result<Self>

Open
#327 1 comment 0 reactions 0 assignees View on GitHub
semver-major
Dominant language
Rust
Stars
209
Forks
91
PR merge metrics
No merged PRs in 30d

Description

So `Response::new(9000)` no longer panics but returns an error instead. This will match the new `Request` constructor as well.

This was brought up on Reddit in response to the v2.10.0 announcement and is actually something we should do.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.