Skip to content

Latest commit

 

History

History
113 lines (79 loc) · 2.08 KB

File metadata and controls

113 lines (79 loc) · 2.08 KB

HttpResourceHandler

  • class HttpResourceHandler (php\http\HttpResourceHandler) extends HttpAbstractHandler
  • package http
  • source php/http/HttpResourceHandler.php

Methods


Methods

__construct()

__construct(string|File $file): void

HttpFileDirectoryHandler constructor.


file()

file(string|File $file): string

etags()

etags(bool $value): bool

acceptRanges()

acceptRanges(bool $value): bool

dirAllowed()

dirAllowed(bool $value): bool

directoriesListed()

directoriesListed(bool $value): bool

pathInfoOnly()

pathInfoOnly(bool $value): bool

redirectWelcome()

redirectWelcome(bool $value): bool

cacheControl()

cacheControl(string $value): string

__invoke()

__invoke(php\http\HttpServerRequest $request, php\http\HttpServerResponse $response): void