Module Webs_kit.Gateway

Gateway interaction.

File serving handoff

val send_file : ?⁠prefix:string -> -> Webs.Req.t -> (Webs.Resp.tWebs.Resp.t) Stdlib.result

send_file ~prefix ~header r is:

Used with the appropriate header this allows to handoff the request back to the gateway for it to serve the file. See this section of the web service howto manual.

val x_accel_redirect :

x_accel_redirect is the header name "x-accel-redirect" used by nginx for internal redirection.

val x_sendfile :

x_sendfile is the header name "x-sendfile". Used by Apache and Lightppd for file serving.

Nginx specific