Fr3nch13/CakePHP Utilities

InjectContentTypeTrait

Table of Contents

Methods

injectContentType()  : array<string|int, mixed>
Inject the provided Content-Type, if none is already present.

Methods

injectContentType()

Inject the provided Content-Type, if none is already present.

private injectContentType(string $contentType, array<string|int, mixed> $headers) : array<string|int, mixed>
Parameters
$contentType : string
$headers : array<string|int, mixed>
Return values
array<string|int, mixed>

Headers with injected Content-Type


        
On this page

Search results