Skip to content

Reference

phil/safe-http

Every public type of the package, with its role.

TypeKindRole
Phil\SafeHttp\SafeHttpClientfinal readonly class, resetReads an address within its limits, behind the guard
Phil\SafeHttp\Limitsfinal readonly classThe silence, the whole duration, the bytes, the redirects and the User-Agent of a read
Phil\SafeHttp\ReadRulefinal readonly classThe Accept, the media types read, the stop mark
Phil\SafeHttp\SafeResponsefinal readonly classThe answer: address, redirects, status, headers, body
Phil\SafeHttp\AddressGuardfinal classThe check of a first address and of a redirect
Phil\SafeHttp\Exception\SafeHttpExceptioninterfaceEvery exception of the package
Phil\SafeHttp\Exception\RefusedAddressfinal classAn address, a redirect or a host refused
Phil\SafeHttp\Exception\TooManyRedirectsfinal classA chain of redirects too long
Phil\SafeHttp\Exception\FetchFailedfinal classNo answer within the limits
Phil\SafeHttp\Exception\InvalidLimitsfinal classLimits or a header out of bounds