diff --git a/tiny_httpd/Tiny_httpd_core/Server/Head_middleware/index.html b/tiny_httpd/Tiny_httpd_core/Server/Head_middleware/index.html index 94acc512..1d610e63 100644 --- a/tiny_httpd/Tiny_httpd_core/Server/Head_middleware/index.html +++ b/tiny_httpd/Tiny_httpd_core/Server/Head_middleware/index.html @@ -1,2 +1,2 @@ -Head_middleware (tiny_httpd.Tiny_httpd_core.Server.Head_middleware)

Module Server.Head_middleware

A middleware that only considers the request's head+headers.

These middlewares are simpler than full Middleware.t and work in more contexts.

type t = {
  1. handle : 'a. 'a Request.t -> 'a Request.t;
}

A handler that takes the request, without its body, and possibly modifies it.

val to_middleware : t -> Middleware.t
+Head_middleware (tiny_httpd.Tiny_httpd_core.Server.Head_middleware)

Module Server.Head_middleware

A middleware that only considers the request's head+headers.

These middlewares are simpler than full Middleware.t and work in more contexts.

type t = {
  1. handle : 'a. 'a Request.t -> 'a Request.t;
}

A handler that takes the request, without its body, and possibly modifies it.

  • since NEXT_RELEASE
val trivial : t

Pass through

val to_middleware : t -> Middleware.t