InteractsWithHttpHeaders uses trait:short
Table of Contents
Properties
- $headers : array<string|int, mixed>
Methods
- compileHeaders() : array<string|int, mixed>
- Maps the headers into a key-value string for FFmpeg. Returns an array of arguments to pass into the command.
- getHeaders() : array<string|int, mixed>
- setHeaders() : self
- mergeBeforeKey() : array<string|int, mixed>
- Prepend the given $values in front of the $key in $input.
- mergeBeforePathInput() : array<string|int, mixed>
- Searches in the $input array for the key bu the $path, and then prepend the $values in front of that key.
Properties
$headers
protected
array<string|int, mixed>
$headers
= []
Methods
compileHeaders()
Maps the headers into a key-value string for FFmpeg. Returns an array of arguments to pass into the command.
public
static compileHeaders([array<string|int, mixed> $headers = [] ]) : array<string|int, mixed>
Parameters
- $headers : array<string|int, mixed> = []
Return values
array<string|int, mixed>getHeaders()
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>setHeaders()
public
setHeaders([array<string|int, mixed> $headers = [] ]) : self
Parameters
- $headers : array<string|int, mixed> = []
Return values
selfmergeBeforeKey()
Prepend the given $values in front of the $key in $input.
protected
static mergeBeforeKey(array<string|int, mixed> $input, int $key[, array<string|int, mixed> $values = [] ]) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
- $key : int
- $values : array<string|int, mixed> = []
Return values
array<string|int, mixed>mergeBeforePathInput()
Searches in the $input array for the key bu the $path, and then prepend the $values in front of that key.
protected
static mergeBeforePathInput(array<string|int, mixed> $input, string $path[, array<string|int, mixed> $values = [] ]) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
- $path : string
- $values : array<string|int, mixed> = []