Skip to content

feat: add request logging and directory file serving#11

Merged
thorsager merged 3 commits intomainfrom
files
Aug 21, 2025
Merged

feat: add request logging and directory file serving#11
thorsager merged 3 commits intomainfrom
files

Conversation

@thorsager
Copy link
Copy Markdown
Owner

@thorsager thorsager commented Jun 8, 2025

  • Add requestLogger middleware to log HTTP requests with user, path, status, size, referer, user agent, duration, and request dump (hex-encoded).
  • Support serving files from a directory when responseBodyFlag points to a directory, ensuring requests stay within the base directory.
  • Refactor basic auth validation to use r.BasicAuth().
  • Refactor server startup and shutdown logic for clarity.
  • bumping to go 1.24 fixing download go1.22 for darwin/arm64: toolchain not available #10

thorsager added 3 commits June 8, 2025 11:10
- Add requestLogger middleware to log HTTP requests with user, path, status,
  size, referer, user agent, duration, and request dump (hex-encoded).
- Support serving files from a directory when responseBodyFlag points to a
  directory, ensuring requests stay within the base directory.
- Refactor basic auth validation to use r.BasicAuth().
- Refactor server startup and shutdown logic for clarity.
Upgraded the Go version in go.mod from 1.22 to 1.24 and added the
toolchain directive for go1.24.3. This ensures consistent builds and
leverages the latest language features and improvements.
Updated the Go version in go.mod from 1.24 (toolchain go1.24.3) to 1.24.6
to ensure compatibility with the latest patches and improvements. This
change helps maintain security and stability for the project.
@thorsager thorsager merged commit 978497f into main Aug 21, 2025
3 checks passed
@thorsager thorsager deleted the files branch August 21, 2025 19:46
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

Successfully merging this pull request may close these issues.

1 participant