module Favicon:sig..end
Functions for generating responses to requests for /favicon.ico.
val ico : stringThe default Restful favicon, a base64-encoded image/vnd.microsoft.icon.
Decode with Netencoding.Base64.decode ~accept_spaces:true.
val content_type : stringThe 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_statusfavicon ?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.mainfile : the name of a file containing your favicondata : your favicon