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

Improve error handling and response parser #232

Merged
merged 9 commits into from
Feb 24, 2024
Merged

Conversation

SofianD
Copy link
Contributor

@SofianD SofianD commented Feb 8, 2024

feat: add tool to decompress and parse.

feat: handle errors by stage

refactor: use class to handle http error

chore: export 'UndiciResponseHandler', isHTTPError and isHttpieError

docs: add doc about error handling

feat: handle errors by stage

refactor: use class to handle http error

chore: export 'UndiciResponseHandler', isHTTPError and isHttpieError

docs: add doc about error handling
examples/throwOnHttpieError.mjs Outdated Show resolved Hide resolved
src/class/HttpieHandlerError.ts Outdated Show resolved Hide resolved
src/class/HttpieHandlerError.ts Outdated Show resolved Hide resolved
src/class/HttpieHandlerError.ts Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
examples/mode.ts Show resolved Hide resolved
examples/mode.ts Outdated Show resolved Hide resolved
examples/throwOnHttpieError.mjs Show resolved Hide resolved
src/class/HttpieOnHttpError.ts Outdated Show resolved Hide resolved
src/common/errors.ts Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
@fraxken fraxken merged commit 42aa243 into master Feb 24, 2024
5 checks passed
@fraxken fraxken deleted the fix-parseUndiciResponse branch February 24, 2024 11:56
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.

3 participants