This is server API (go to client)

Module Eliom_registration.​Redirection

module Redirection : sig..end

Eliom service registration for services that returns a redirections towards another service. See the Eliom manual for more information about Redirections outputs.

The default returned HTTP code is 302 Found. You could use the optional parameter ~options to change this value:

  • `MovedPermanently to return 301 Moved Permanently.
  • `Found to return 302 Found.
  • `SeeOther to return 303 See Other.
  • `NotNodifed to return 304 Not Modified.
  • `UseProxy to return 305 Use Proxy.
  • `TemporaryRedirect to return 307 Temporary Redirect.

type ('a, 'b) page = 
  (unit, unit, Eliom_service.get_service_kind, [ `WithoutSuffix ],
   unit, unit, Eliom_service.registrable, 'b)
type options = 
  [ `Found
  | `MovedPermanently
  | `NotNodifed
  | `SeeOther
  | `TemporaryRedirect
  | `UseProxy ]
type 'b return = 'b
type 'a result = 'a Eliom_registration.kind