Skip to content

API reference / Quittio \ Core \ Pdf \ Renderers

DenyingHttpClient

final class in quittio/core · implements Mpdf\Http\ClientInterface

Quittio\Core\Pdf\Renderers\DenyingHttpClient · Source

mPDF HTTP client that refuses every request (defence in depth).

Quittio prepares every logo as a local file or an inlined data URI, so mPDF never needs to reach the network. Should a reference still resolve to a URL, this client stops the request instead of fetching it, so no bypass of \Quittio\Core\Pdf\LogoCache can cause a server-side request. \Mpdf\AssetFetcher catches the exception and renders the asset as missing.

Methods#

MethodDescription
->sendRequest()

sendRequest()#

public function sendRequest(RequestInterface $request): never
ParameterTypeDescription
$requestPsr\Http\Message\RequestInterface
Returns
never

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.