- class
HttpRequest(httpclient\HttpRequest) - source
httpclient/HttpRequest.php
Description
Class HttpRequest
->method:string->type:string|null->responseType:string|null->url:string->body:mixed->headers:array->cookies:array->userAgent:null|string->bodyParser:null|callable->absoluteUrl:bool
->__construct()- HttpRequest constructor.->method()->absoluteUrl()->url()->body()->userAgent()->type()- NONE, XML, JSON, TEXT, URLENCODE, MULTIPART, STREAM->responseType()- XML, JSON, TEXT, STREAM->cookies()->headers()->contentType()->bodyParser()
__construct(string $method, string $url, array $headers, null $body): voidHttpRequest constructor.
method([ null|string $method): stringabsoluteUrl([ bool|null $value): bool|nullurl([ null|string $url): null|stringbody(null|mixed $data): mixeduserAgent([ null|string $userAgent): null|stringtype([ null|string $type): stringNONE, XML, JSON, TEXT, URLENCODE, MULTIPART, STREAM
responseType([ null|string $type): stringXML, JSON, TEXT, STREAM
cookies([ array|null $cookies): array|nullheaders([ array|null $headers): array|nullcontentType([ null|string $contentType): null|stringbodyParser([ callable|null $callback): callable|null