Ally's PetStore API

HeaderSelector
in package

ApiException Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

selectHeaders()  : array<string|int, mixed>
selectHeadersForMultipart()  : array<string|int, mixed>
selectAcceptHeader()  : null|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()

public selectHeaders(array<string|int, string> $accept, array<string|int, string> $contentTypes) : array<string|int, mixed>
Parameters
$accept : array<string|int, string>
$contentTypes : array<string|int, string>
Tags
Return values
array<string|int, mixed>

selectHeadersForMultipart()

public selectHeadersForMultipart(array<string|int, string> $accept) : array<string|int, mixed>
Parameters
$accept : array<string|int, string>
Tags
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) : null|string
Parameters
$accept : array<string|int, string>

Array of header

Tags
Return values
null|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

Tags
Return values
string

Content-Type (e.g. application/json)


        

Search results