HeaderSelector
in package
ApiException Class Doc Comment
Tags
Table of Contents
- selectHeaders() : array<string|int, mixed>
- SelectHeaders method comment
- selectHeadersForMultipart() : array<string|int, mixed>
- SelectHeadersForMultipart method comment
- _selectAcceptHeader() : string
- Return the header 'Accept' based on an array of Accept provided
- _selectContentTypeHeader() : string
- Return the content type based on an array of content-type provided
Methods
selectHeaders()
SelectHeaders method comment
public
selectHeaders(array<string|int, string> $accept, array<string|int, string> $contentTypes) : array<string|int, mixed>
Parameters
- $accept : array<string|int, string>
-
list of strings
- $contentTypes : array<string|int, string>
-
list of strings for contentTypes
Return values
array<string|int, mixed> —selectHeadersForMultipart()
SelectHeadersForMultipart method comment
public
selectHeadersForMultipart(array<string|int, string> $accept) : array<string|int, mixed>
Parameters
- $accept : array<string|int, string>
-
list of strings
Return values
array<string|int, mixed> —_selectAcceptHeader()
Return the header 'Accept' based on an array of Accept provided
private
_selectAcceptHeader(array<string|int, string> $accept) : string
Parameters
- $accept : array<string|int, string>
-
Array of header
Return values
string —Accept (e.g. application/json)
_selectContentTypeHeader()
Return the content type based on an array of content-type provided
private
_selectContentTypeHeader(array<string|int, string> $contentType) : string
Parameters
- $contentType : array<string|int, string>
-
Array fo content-type
Return values
string —Content-Type (e.g. application/json)