Метод | Описание | |
---|---|---|
getCookies ( ) | ||
getData ( ) | ||
getIsOk ( ) : boolean | Checks if response status code is OK (status code = 20x) | |
getStatusCode ( ) : string | Returns status code. |
Метод | Описание | |
---|---|---|
defaultFormat ( ) : string | null | Returns default format automatically detected from headers and content. | |
detectFormatByContent ( string $content ) : null | string | Detects response format from raw content. | |
detectFormatByHeaders ( |
Detects format from headers. |
Метод | Описание | |
---|---|---|
getParser ( ) : yii\httpclient\ParserInterface | ||
normalizeCookieParamName ( string $rawName ) : string | ||
parseCookie ( string $cookieString ) : |
Parses cookie value string, creating a [[Cookie]] instance. |
protected defaultFormat ( ) : string | null | ||
Результат | string | null | format name, 'null' - if detection failed. |
protected detectFormatByHeaders ( |
||
$headers | source headers. | |
Результат | null | string | format name, 'null' - if detection failed. |
public getStatusCode ( ) : string | ||
Результат | string | status code. |