Swlib\Saber\Response

  1. public function isSuccess(): bool
  2. public function getUri(): Psr\Http\Message\UriInterface
  3. public function getTime(): float
  4. public function getRedirectHeaders(): array
  5. public function getStatusCode()
  6. public function withStatus($code, $reasonPhrase = '')
  7. public function getReasonPhrase()
  8. public function __toString()
  9. public function getProtocolVersion(): string
  10. public function withProtocolVersion($version): self
  11. public function hasHeader($name): bool
  12. public function getHeader($name): array
  13. public function getHeaderLine($name): string
  14. public function getHeaders(bool $implode = false, bool $ucwords = false): array
  15. public function getHeadersString(bool $ucwords = true): string
  16. public function withHeader($raw_name, $value): self
  17. public function withHeaders(array $headers): self
  18. public function withAddedHeaders(array $headers): self
  19. public function withAddedHeader($raw_name, $value): self
  20. public function withoutHeader($name): self
  21. public function getBody(): Psr\Http\Message\StreamInterface
  22. public function withBody(?Psr\Http\Message\StreamInterface $body): self
  23. public function getCookies()
  24. public function setCookie(array $options): self
  25. public function unsetCookie(string $name, string $path = '', string $domain = ''): self
  26. public function getSpecialMark(string $name = 'default')
  27. public function withSpecialMark($mark, string $name = 'default'): self
  28. public function getParsedJsonArray(bool $reParse = false): array
  29. public function getParsedJsonObject(bool $reParse = false): object
  30. public function getParsedQueryArray(bool $reParse = false): array
  31. public function getParsedXmlArray(bool $reParse = false): array
  32. public function getParsedXmlObject(bool $reParse = false): SimpleXMLElement
  33. public function getParsedDomObject(bool $reParse = false): DOMDocument
  34. public function getDataRegexMatch(string $regex, $group = null, int $fill_size)
  35. public function getDataRegexMatches(string $regex, int $flag): array
  36. public function isExistInData(string $needle, int $offset)