-
Notifications
You must be signed in to change notification settings - Fork 0
feat: HEAD메서드 ping endpoint 추가 #19
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a HEAD endpoint for the /ping route to support monitoring health checks.
- Added a HEAD route for /ping alongside the existing GET route using the same handler.
- Updates the router configuration to handle HEAD requests on the ping endpoint.
Comments suppressed due to low confidence (1)
internal/http/router/router.go:12
- Ensure that using the same handler for both GET and HEAD requests adheres to the HEAD method semantics, where a HEAD request should not return a response body. If the PingPong handler produces a body, consider adapting it for HEAD requests or verifying that the underlying framework suppresses the body as expected.
r.HEAD("/ping", handler.PingPong)
report: Run #69
🎉 All tests passed! |
report: Run #70
🎉 All tests passed! |
report: Run #71
🎉 All tests passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a HEAD method endpoint for monitoring purposes.
- Introduces a new HEAD handler for the /ping route.
- Registers the HEAD route in the router by mapping it to the new handler.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/http/handler/pinghandler.go | Added HEAD method handler (DoNoting) |
| internal/http/router/router.go | Registered the HEAD route for the /ping endpoint |
Comments suppressed due to low confidence (1)
internal/http/handler/pinghandler.go:9
- [nitpick] The function name 'DoNoting' appears to be a misspelling; consider renaming it to 'DoNothing' for clarity.
func DoNoting(context *gin.Context) {
report: Run #72
🎉 All tests passed! |
모니터링 테스트용 HEAD 메서드 추가