]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/http_daemon.mli
added support for HTTP (Basic) authentication
[helm.git] / helm / DEVEL / ocaml-http / http_daemon.mli
index 3cc176854560b8c38a5f9be638aae2dd2cf4be11..7f1e1bb46015e193a53a538186a1975f795b427d 100644 (file)
@@ -86,6 +86,11 @@ val respond_redirect:
   out_channel ->
     unit
 
+  (** respond with a 401 (Unauthorized) response asking for authentication
+  * against given realm (default is the server name) *)
+val respond_unauthorized:
+  ?version: Http_types.version -> ?realm:string -> out_channel -> unit
+
   (** send an "error" response (i.e. 400 <= status < 600), optional body
   argument as per send_redirect, default response status is 400 (bad request),
   only error status are accepted by this function, other values will