4 ms·
Not OP but for me, I wanted to write http server applications and I was put off by having to specify the http response status messages and timestamps. I'm wonde
by 147 6y ago
Not OP but for me, I wanted to write http server applications and I was put off by having to specify the http response status messages and timestamps. I'm wondering why something slightly higher level isn't built into the standard lib.
- Bogdanp 6y agoYou don’t have to specify those things yourself unless you want to manually construct a response struct. There are helpers like response/xexpr and response/output that construct responses for you. This article might help: https://defn.io/2020/02/12/racket-web-server-guide/ https://defn.io/2020/02/12/racket-web-server-guide/
- samth 6y agoThese days, response status messages are automatically inferred: https://docs.racket-lang.org/web-server/http.html?q=response%2Fxexpr#%28def._%28%28lib._web-server%2Fhttp%2Fresponse-structs..rkt%29._response%2Ffull%29%29 https://docs.racket-lang.org/web-server/http.html?q=response...
- 147 6y agoThanks! I’m gonna give racket another spin now.