aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
AgeCommit message (Collapse)Author
2026-02-09go.mod: update all dependenciesShulhan
This update affect the test on onGet, where request to directory that does not end with slash will be redirected with status code 301 (Moved Permanently) instead of 302 (Found).
2026-02-07all: embed struct [lib/http.ServerOptions] directly to [ServeOptions]Shulhan
At this point, all of the fields in the struct ServeOptions is the same with [lib/http.ServerOptions] except IsDevelopment and ConvertOptions. For field IsDevelopment we keep in the struct. For field ConvertOptions we remove it and let the caller pass it on Serve function or InitHTTPServer method.
2025-01-07all: auto convert markup when HTTP client request GET to HTML fileShulhan
In development mode, where [ServeOptions.IsDevelopment] is set to true or when running "ciigo serve", the ciigo HTTP server will check if the new markup file is newer than HTML file when user press refresh or reload on the browser. If its newer, it will convert the markup file and return the new content of HTML file.