-
Pre-submission Checklist
Question Category
Your QuestionThank you for adding auth middleware by #237. My question is about would you please give an example about how we are going to use it. Are we going to simply pass this to |
Beta Was this translation helpful? Give feedback.
Answered by
jba
Aug 20, 2025
Replies: 1 comment 1 reply
-
It is HTTP middleware. So if you had an HTTP handler, you would wrap it like this:
Then you can pass |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ardaguclu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is HTTP middleware. So if you had an HTTP handler, you would wrap it like this:
Then you can pass
h
tohttp.Handle
orhttp.ServeMux.Handle
.