Skip to content

Latest commit

 

History

History
152 lines (107 loc) · 2.58 KB

File metadata and controls

152 lines (107 loc) · 2.58 KB

HttpRequest

  • class HttpRequest (httpclient\HttpRequest)
  • source httpclient/HttpRequest.php

Description

Class HttpRequest


Properties


Methods


Methods

__construct()

__construct(string $method, string $url, array $headers, null $body): void

HttpRequest constructor.


method()

method([ null|string $method): string

absoluteUrl()

absoluteUrl([ bool|null $value): bool|null

url()

url([ null|string $url): null|string

body()

body(null|mixed $data): mixed

userAgent()

userAgent([ null|string $userAgent): null|string

type()

type([ null|string $type): string

NONE, XML, JSON, TEXT, URLENCODE, MULTIPART, STREAM


responseType()

responseType([ null|string $type): string

XML, JSON, TEXT, STREAM


cookies()

cookies([ array|null $cookies): array|null

headers()

headers([ array|null $headers): array|null

contentType()

contentType([ null|string $contentType): null|string

bodyParser()

bodyParser([ callable|null $callback): callable|null