module Favicon:sig
..end
Functions for generating responses to requests for /favicon.ico
.
val ico : string
The default Restful favicon, a base64-encoded image/vnd.microsoft.icon.
Decode with Netencoding.Base64.decode
~accept_spaces:true
.
val content_type : string
The MIME content-type for Restful.Favicon.ico
, i.e. image/vnd.microsoft.icon.
val favicon : ?file:string ->
?data:string ->
('a -> 'b -> Netcgi.cgi -> Nethttp.http_status) ->
'a -> 'b -> Netcgi.cgi -> Nethttp.http_status
favicon ?file ?data main
: convert main
into a function
that also answers /favicon.ico
requests. If neither ?file
nor ?data
are given, Restful.Favicon.ico
is used.
Restful.SERVICE.main
file
: the name of a file containing your favicondata
: your favicon