RequestBuilder
in package

This is the builder to create Request DTOs.

Tags
see
RequestBuilder::path()
see
RequestBuilder::method()
see
RequestBuilder::pathParams()
see
RequestBuilder::urlParams()
see
RequestBuilder::formParams()
see
RequestBuilder::body()
see
RequestBuilder::headers()
see
RequestBuilder::build()

Table of Contents

$body  : mixed
$formParams  : mixed
$headers  : array<string|int, mixed>|null
$method  : string|null
$path  : string|null
$pathParams  : mixed
$urlParams  : mixed
body() Sets the body.  : RequestBuilder
build() Returns the created batch request.  : Request
formParams() Sets the form (the ones sent by POST) parameters.  : RequestBuilder
headers() Sets the headers.  : RequestBuilder
method() Sets the method.  : RequestBuilder
path() Sets the path.  : RequestBuilder
pathParams() Sets the path parameters.  : RequestBuilder
urlParams() Sets the URL (the ones sent by GET) parameters.  : RequestBuilder
fillRequest()  : Request

Properties

$headers

protected array<string|int, mixed>|null $headers = null

Methods

formParams()

Sets the form (the ones sent by POST) parameters.

public formParams(mixed $formParams) : RequestBuilder
Parameters
$formParams : mixed

An instance of ParametersGroup or an array.

Return values
RequestBuilder

urlParams()

Sets the URL (the ones sent by GET) parameters.

public urlParams(mixed $urlParams) : RequestBuilder
Parameters
$urlParams : mixed

An instance of ParametersGroup or an array.

Return values
RequestBuilder

Search results