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

Add async to snippet showing a default unhandled request handler #407

Closed
diego-aquino opened this issue Sep 20, 2024 · 1 comment · Fixed by #415
Closed

Add async to snippet showing a default unhandled request handler #407

diego-aquino opened this issue Sep 20, 2024 · 1 comment · Fixed by #415
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@diego-aquino
Copy link
Member

diego-aquino commented Sep 20, 2024

httpInterceptor.default.onUnhandledRequest((request, context) => {
const url = new URL(request.url);
if (!url.pathname.startsWith('/assets')) {
await context.log();
}
});

Thanks for point out, @pedrohenrique-ql!

@diego-aquino diego-aquino added the documentation Improvements or additions to documentation label Sep 20, 2024
@diego-aquino diego-aquino self-assigned this Sep 20, 2024
@diego-aquino diego-aquino moved this to To do in Zimic Sep 20, 2024
@diego-aquino diego-aquino added this to the v0.9.2 milestone Sep 20, 2024
@diego-aquino diego-aquino moved this from To do to In progress in Zimic Oct 3, 2024
@diego-aquino diego-aquino moved this from In progress to In review in Zimic Oct 3, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Zimic Oct 3, 2024
Copy link
Contributor

github-actions bot commented Oct 3, 2024

Released in v0.9.2 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant