racket / web-server

Other
90 stars 47 forks source link

Add #:path->headers to dispatch-files #117

Closed sorawee closed 2 years ago

sorawee commented 2 years ago

We might want to set the response header based on path. For example, a server might want to serve a gzip file (.gz) with Content-Encoding: gzip, so that browsers automatically unzip the file on the client side.

jeapostrophe commented 2 years ago

Thank you!