Link Search Menu Expand Document (external link)

ResponseInterface

view source

Table of contents
  1. ResponseInterface
    1. Methods
      1. public getStatusCode()
      2. public getContent()
      3. public toArray()
      4. public getHeaders()
      5. public getHeader(string $headerName)

Methods

public getStatusCode()

returns int

Gets response status code

public getContent()

returns string

Gets content from response

public toArray()

returns array

Converts the response to array

public getHeaders()

returns array

Gets response headers

public getHeader(string $headerName)

returns string

Gets response header by name