TGetAbsoluteUrlEvent Anonymous method
Event type used to customize the absolute URL the server builds for a resource, for example the URL sent in the Location header of a response.
Remarks
Schema: the scheme of the request URL, such as http or https. Authority: the host and port of the request URL. Path: the path the relative URL is resolved against.
RelativeUrl: the URL to make absolute. Url: comes in with the URL built by the server and can be replaced by the handler. Handle it when the server sits behind a reverse proxy and the URL seen by the client differs from the one seen by the server.
Syntax
Unit: XData.Server.Module
TGetAbsoluteUrlEvent = reference to procedure(const Schema: string; const Authority: string; const Path: string; const RelativeUrl: string; var Url: string);