Skip to content

make Response::new return Result<Self> #327

@yoshuawuyts

Description

@yoshuawuyts

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    semver-majorThis change requires a semver major change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions