aboutsummaryrefslogtreecommitdiff
path: root/src/guile/cantius.scm
AgeCommit message (Collapse)Author
2024-07-18Improve the mechanism of conditions tied to HTTP error codes.W. Kosior
Tere's now an extra `&condition-with-http-code' type that can be raised to trigger an appropriate HTTP response. This is meant to be used for all HTTP codes other than those few that have their own condition types.
2024-07-18Order imports alphabetically.W. Kosior
2024-01-26Rename `normalized-path-string` nested function.Wojtek Kosior
This is to decrease the chance of confusion with new, unrelated `normalize-path`.
2024-01-26Normalize resource path in `find-resource-file`.Wojtek Kosior
`..` and `.` are now legal as long as long as the path does not reference the resource root directory's parent.
2024-01-26Add `normalize-path` function.Wojtek Kosior
2024-01-25Better use of srfi-35 conditions.Wojtek Kosior
This commit defines `&not-found` and `&forbidden` condition types and allows special handlers to be registered to handle them during requests. All default handlers now ignore the value assigned to the `%default-headers` parameter and always use "text/plain; charset=utf-8" as content type. `cantius.scm` now imports SRFI-35 is using prefix, copyright years have been updated.
2024-01-25Forbid `.` and `..` in loaded resource file paths.Wojtek Kosior
2023-12-19Allow handlers to only return response body.Wojtek Kosior
2023-12-19Adjust backtrace frame range.Wojtek Kosior
2023-12-16Facilitate using parameters for endpoint-specific behavior.Wojtek Kosior
2023-12-16Initial commit.Wojtek Kosior