API / Minn\Front / Redirects

Redirects enum

Minn\Front\Redirects · public/minn/src/Minn/Front/Redirects.php · 23 lines

Whether a resolution may answer with a canonical redirect. A GET or HEAD follows them (the trailing slash, the pretty permalink for ?p=, the guessed destination); any other method holds and resolves the path as typed, as the reference's redirect_canonical bails on a POST.

Cases

caseFollow
caseHold

Public

staticforMethod(Minn\Http\Method $method): self#

The mode a request's method allows.

staticforRequest(Minn\Http\Request $request): self#

The mode for a request: its method's (a feed's query form moves too, under the site's own host).

methodfollows(): bool#

Whether a canonical redirect may be answered.