Replies: 1 comment
-
You can use or_else_any_method_async like we do in the sandbox worker here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
recently I built a small worker to 302 redirect requests to different source of package mirrors based on the url content. The package mirror has deep file hierarchy, and I need only to process the first part of the path. My current way to implement a catch-all pattern is to write as deep as 10 params. It looks really ugly and I want to know is there any elegant way to achieve this.
P.S. I know I can write a macro to generate as deep path as I want, but I want a more elegant way.
Beta Was this translation helpful? Give feedback.
All reactions