Method | Description | |
---|---|---|
getCookies ( ) | ||
getData ( ) | ||
getIsOk ( ) : boolean | Checks if response status code is OK (status code = 20x) | |
getStatusCode ( ) : string | Returns status code. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
getParser ( ) : yii\httpclient\ParserInterface | ||
normalizeCookieParamName ( string $rawName ) : string | ||
parseCookie ( string $cookieString ) : |
Parses cookie value string, creating a [[Cookie]] instance. |
protected defaultFormat ( ) : string | null | ||
return | string | null | format name, 'null' - if detection failed. |
protected detectFormatByHeaders ( |
||
$headers | source headers. | |
return | null | string | format name, 'null' - if detection failed. |
public getStatusCode ( ) : string | ||
return | string | status code. |