Type Alias Candidate
type Candidate = {
data: boolean;
method: string;
principal: boolean;
requestHeaders: Headers;
response: Response;
search: string;
tags: readonly string[];
}
data: boolean;
method: string;
principal: boolean;
requestHeaders: Headers;
response: Response;
search: string;
tags: readonly string[];
}
Properties
data
data: boolean
a data route answers any content type, a page must be HTML
method
method: string
principal
principal: boolean
request Headers
requestHeaders: Headers
the headers of the request the visitor made
response
response: Response
search
search: string
the search part of the page URL, empty when there is none
tags
tags: readonly string[]
the tags the response named, before any default
what the verdict reads;
principalis a route the caller declared for a signed-in visitor