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

一个疑惑,在第一部分的关于template的那节 #45

Open
Alex-Jee opened this issue Oct 31, 2021 · 0 comments
Open

一个疑惑,在第一部分的关于template的那节 #45

Alex-Jee opened this issue Oct 31, 2021 · 0 comments

Comments

@Alex-Jee
Copy link

请问,为什么func (group *RouterGroup) createStaticHandler里,需要自己启动fileServer.ServeHTTP(c.Writer, c.Req)呢?不是已经把这个handler绑定到了GET上吗?而之前的GET请求却不需要自己来启动ServeHTTP呢?

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

No branches or pull requests

1 participant