3 ms·
I’m puzzled as to why the web server didn’t (apparently) allow for setting of arbitrary headers…
by rcarmo 5y ago
I’m puzzled as to why the web server didn’t (apparently) allow for setting of arbitrary headers…
- soegaard 5y agoIt did. It's the standard file dispatcher that now supports keyword arguments for cache control. https://github.com/racket/web-server/commit/f82decd8bbaf825149791ab19d7469092c1fa001 https://github.com/racket/web-server/commit/f82decd8bbaf8251...
- gus_massa 5y agoIIRC I used headers for cache or cookies but I don't remember the details now. There is a header field in `response/full` https://docs.racket-lang.org/web-server/http.html#%28def._%28%28lib._web-server%2Fhttp%2Fresponse-structs..rkt%29._response%2Ffull%29%29 https://docs.racket-lang.org/web-server/http.html#%28def._%2... (IIRC^2 the web server has an easy mode and a hard mode. Perhaps the easy mode doesn't have custom headers?)