Link Search Menu Expand Document

danog\MadelineProto\MTProtoTools\ResponseInfo

Back to index

Author: Daniil Gentili daniil@daniil.it

Obtain response information for file to server.

Method list:

  • parseHeaders(string $method, array $headers, array $messageMedia): self
  • getCodeExplanation(): string
  • shouldServe(): \bool Whether to serve file
  • getServeRange(): \array HTTP serving range
  • getCode(): \int HTTP response code
  • getHeaders(): \array Header array

Methods:

parseHeaders(string $method, array $headers, array $messageMedia): self

Parse headers.

Parameters:

  • $method: string HTTP method
  • $headers: array HTTP headers
  • $messageMedia: array Media info

getCodeExplanation(): string

Get explanation for HTTP code.

shouldServe(): \bool Whether to serve file

Whether to serve file.

Return value: Whether to serve file

getServeRange(): \array HTTP serving range

Get serving range.

Return value: HTTP serving range

getCode(): \int HTTP response code

Get HTTP response code.

Return value: HTTP response code

getHeaders(): \array Header array

Get header array.

Return value: Header array


Generated by danog/phpdoc