Skip to content

impl HttpError::new_boxed to provide user with ability to ctor from aready boxed error#789

Open
DoumanAsh wants to merge 1 commit into
apache:mainfrom
DoumanAsh:error_alt_ctor
Open

impl HttpError::new_boxed to provide user with ability to ctor from aready boxed error#789
DoumanAsh wants to merge 1 commit into
apache:mainfrom
DoumanAsh:error_alt_ctor

Conversation

@DoumanAsh

@DoumanAsh DoumanAsh commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

None, it is minor improvement to API

Rationale for this change

I would like to be able to created HttpError from already boxed error for my alternative HTTP client implementation
Otherwise I need to wrap boxed error into new type

What changes are included in this PR?

Introduces new method to HttpError to create error from boxed dyn std::error::Error

Are there any user-facing changes?

New public method on HttpError
No breaking changes

@DoumanAsh DoumanAsh changed the title impl HttpError::new_boxed to provide user with ability to ctor from a… impl HttpError::new_boxed to provide user with ability to ctor from aready boxed error Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant