class Http extends Facade

Properties

static protected Container|null $app

The application instance being facaded.

from  Facade
static protected array $resolvedInstance

The resolved object instances.

from  Facade
static protected bool $cached

Indicates if the resolved instance should be cached.

from  Facade

Methods

static void
resolved(Closure $callback)

Run a Closure when the facade has been resolved.

from  Facade
static MockInterface|null
spy()

Convert the facade into a Mockery spy.

from  Facade
static MockInterface
partialMock()

Initiate a partial mock on the facade.

from  Facade
static CompositeExpectation|Expectation|HigherOrderMessage
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage
expects()

Initiate a mock expectation on the facade.

from  Facade
static MockInterface
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static MockInterface
createMock()

Create a fresh mock instance for the given class.

from  Facade
static bool
isMock()

Determines whether a mock is set as the instance of the facade.

from  Facade
static string|null
getMockableClass()

Get the mockable class for the bound instance.

from  Facade
static void
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from  Facade
static bool
isFake()

Determines whether a "fake" has been set as the facade instance.

from  Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

from  Facade
static void
clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

from  Facade
static void
clearResolvedInstances()

Clear all of the resolved instances.

from  Facade
static Collection
defaultAliases()

Get the application default aliases.

from  Facade
static Container|null
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(Container|null $app)

Set the application instance.

from  Facade
static mixed
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from  Facade
static Factory
fake(array|callable|null $callback = null)

Register a stub callable that will intercept requests and be able to return stub responses.

fakeSequence(string $urlPattern = '*')

Register a response sequence for the given URL pattern.

static Factory
preventStrayRequests(bool $prevent = true)

Indicate that an exception should be thrown if any request is not faked.

static Factory
stubUrl(string $url, array|callable|int|PromiseInterface|Response|string $callback)

Stub the given URL using the given callback.

static Factory
allowStrayRequests(array|null $only = 'null')

No description

static void
assertNothingSent()

No description

static void
assertNotSent(callable $callback)

No description

static void
assertSent(callable $callback)

No description

static void
assertSentCount(int $count)

No description

static void
assertSentInOrder(array $callbacks)

No description

static void
assertSequencesAreEmpty()

No description

static ClientInterface
createClient(HandlerStack $handlerStack, CookieJar $cookies)

No description

void
static()

\Hypervel\Http\Client\PendingRequest async(bool $async = 'true')

static Closure
failedConnection(string|null $message = 'null')

No description

failedRequest(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

static void
flushMacros()

No description

static void
flushState()

No description

static Factory
forgetConnectionHandlers()

No description

static array
getConnectionConfig(string $name)

No description

static array
getConnectionConfigs()

No description

static callable
getConnectionHandler(string $name)

No description

static array
getConnectionOptions(string $name)

No description

static Dispatcher|null
getDispatcher()

No description

static array
getGlobalMiddleware()

No description

static Factory
globalMiddleware(callable $middleware)

No description

static Factory
globalOptions(Closure|array $options)

No description

static Factory
globalRequestMiddleware(callable $middleware)

No description

static Factory
globalResponseMiddleware(callable $middleware)

No description

static bool
hasConnection(string $name)

No description

static bool
hasMacro(string $name)

No description

static void
macro(string $name, callable|object $macro)

No description

static mixed
macroCall(string $method, array $parameters)

No description

static void
mixin(object $mixin, bool $replace = 'true')

No description

static bool
preventingStrayRequests()

No description

static Response
psr7Response(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

static Factory
record()

No description

static Collection
recorded(callable|null $callback = 'null')

No description

static void
recordRequestResponsePair(Request $request, Response|null $response)

No description

static Factory
registerConnection(string $name, array $config = '[]')

No description

static PromiseInterface
response(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

sequence(array $responses = '[]')

No description

static Factory
setConnectionConfig(string $name, array $config)

No description

static mixed
withoutGlobalConfiguration(Closure $callback)

No description

static PendingRequest
accept(string $contentType)

No description

static PendingRequest
acceptJson()

No description

static PendingRequest
afterResponse(callable $callback)

No description

static PendingRequest
asForm()

No description

static PendingRequest
asJson()

No description

static PendingRequest
asMultipart()

No description

static PendingRequest
attach(array|string $name, resource|string $contents = '\'\'', string|null $filename = 'null', array $headers = '[]')

No description

static array
attributes()

No description

static PendingRequest
baseUrl(string $url)

No description

static PendingRequest
beforeSending(callable $callback)

No description

static PendingRequest
bodyFormat(string $format)

No description

static Closure
buildBeforeSendingHandler()

No description

static ClientInterface
buildClient()

No description

static HandlerStack
buildHandlerStack()

No description

static Closure
buildRecorderHandler()

No description

static Closure
buildStubHandler()

No description

static PendingRequest
connection(string $connection, array|null $config = 'null')

No description

static PendingRequest
connectTimeout(int|float $seconds)

No description

static PendingRequest
contentType(string $contentType)

No description

static PendingRequest
dd()

No description

static PromiseInterface
delete(string $url, JsonSerializable|array $data = '[]')

No description

static PendingRequest
dontTruncateExceptions()

No description

static PendingRequest
dump()

No description

static PromiseInterface
get(string $url, JsonSerializable|array|string|null $query = 'null')

No description

static string|null
getConnection()

No description

static array
getOptions()

No description

static PromiseInterface|null
getPromise()

No description

static PromiseInterface
head(string $url, JsonSerializable|array|string|null $query = 'null')

No description

static bool
isAllowedRequestUrl(string $url)

No description

static PendingRequest
maxRedirects(int $max)

No description

static array
mergeOptions(mixed ...$options)

No description

static PromiseInterface
patch(string $url, JsonSerializable|array $data = '[]')

No description

static PromiseInterface
post(string $url, JsonSerializable|array $data = '[]')

No description

static PendingRequest
prependMiddleware(callable $middleware)

No description

static HandlerStack
pushHandlers(HandlerStack $handlerStack)

No description

static PromiseInterface
put(string $url, JsonSerializable|array $data = '[]')

No description

static PromiseInterface
query(string $url, JsonSerializable|array $data = '[]')

No description

static PendingRequest
replaceHeaders(array $headers)

No description

static PendingRequest
retry(array|int $times, Closure|int $sleepMilliseconds = '0', null|callable $when = 'null', bool $throw = 'true')

No description

static RequestInterface
runBeforeSendingCallbacks(RequestInterface $request, array $options)

No description

static PromiseInterface
send(string $method, string $url, array $options = '[]')

No description

static PendingRequest
setClient(ClientInterface $client)

No description

static PendingRequest
setHandler(callable $handler)

No description

static PendingRequest
sink(StreamInterface|string $to)

No description

static PendingRequest
stub(Collection|callable $callback)

No description

static PendingRequest
throw(null|callable $callback = 'null')

No description

static PendingRequest
throwIf(callable|bool $condition, null|callable $callback = 'null')

No description

static PendingRequest
throwUnless(callable|bool $condition, null|callable $callback = 'null')

No description

static PendingRequest
timeout(int|float $seconds)

No description

static PendingRequest
truncateExceptionsAt(int $length)

No description

static mixed
unless(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

static mixed
when(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

static PendingRequest
withAttributes(array $attributes)

No description

static PendingRequest
withBasicAuth(string $username, string $password)

No description

static PendingRequest
withBody(Stringable $content, string|null $contentType = '\'application/json\'')

No description

static PendingRequest
withCookie(SetCookie $cookie)

No description

static PendingRequest
withCookies(array $cookies, string $domain)

No description

static PendingRequest
withDigestAuth(string $username, string $password)

No description

static PendingRequest
withHeader(string $name, mixed $value)

No description

static PendingRequest
withHeaders(array $headers)

No description

static PendingRequest
withMiddleware(callable $middleware)

No description

static PendingRequest
withOptions(array $options)

No description

static PendingRequest
withoutRedirecting()

No description

static PendingRequest
withoutTelescope()

No description

static PendingRequest
withoutVerifying()

No description

static PendingRequest
withQueryParameters(array $parameters)

No description

static PendingRequest
withRequestMiddleware(callable $middleware)

No description

static PendingRequest
withResponseMiddleware(callable $middleware)

No description

static PendingRequest
withTelescopeTags(array<int $, UnitEnum> $tags)

No description

static PendingRequest
withToken(string $token, string $type = '\'Bearer\'')

No description

static PendingRequest
withUrlParameters(array $parameters = '[]')

No description

static PendingRequest
withUserAgent(string|bool $userAgent)

No description

Details

in Facade at line 61
static void resolved(Closure $callback)

Run a Closure when the facade has been resolved.

Boot-only. The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.

Parameters

Closure $callback

Return Value

void

in Facade at line 81
static MockInterface|null spy()

Convert the facade into a Mockery spy.

Tests only. Swaps the resolved facade instance for the worker lifetime.

Return Value

MockInterface|null

in Facade at line 99
static MockInterface partialMock()

Initiate a partial mock on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

Return Value

MockInterface

in Facade at line 115
static CompositeExpectation|Expectation|HigherOrderMessage shouldReceive()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

Return Value

CompositeExpectation|Expectation|HigherOrderMessage

in Facade at line 131
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage expects()

Initiate a mock expectation on the facade.

Tests only. Swaps the resolved facade instance for the worker lifetime.

Return Value

CompositeExpectation|Expectation|ExpectsHigherOrderMessage

in Facade at line 145
static protected MockInterface createFreshMockInstance()

Create a fresh mock instance for the given class.

Return Value

MockInterface

in Facade at line 157
static protected MockInterface createMock()

Create a fresh mock instance for the given class.

Return Value

MockInterface

in Facade at line 167
static protected bool isMock()

Determines whether a mock is set as the instance of the facade.

Return Value

bool

in Facade at line 178
static protected string|null getMockableClass()

Get the mockable class for the bound instance.

Return Value

string|null

in Facade at line 194
static void swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Tests only. Replaces the worker-wide resolved facade instance and container binding; runtime use races across coroutines and changes every subsequent facade call.

Parameters

mixed $instance

Return Value

void

in Facade at line 206
static bool isFake()

Determines whether a "fake" has been set as the facade instance.

Return Value

bool

in Facade at line 217
static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

at line 183
static protected string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

in Facade at line 233
static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

Return Value

mixed

in Facade at line 256
static void clearResolvedInstance(string|null $name = null)

Clear a resolved facade instance.

Boot or tests only. Clears a worker-wide facade cache entry; concurrent coroutines may still hold the previous resolved instance.

Parameters

string|null $name

Return Value

void

in Facade at line 267
static void clearResolvedInstances()

Clear all of the resolved instances.

Boot or tests only. Clears the worker-wide facade cache; concurrent coroutines may still hold previously resolved instances.

Return Value

void

in Facade at line 275
static Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

in Facade at line 335
static Container|null getFacadeApplication()

Get the application instance behind the facade.

Return Value

Container|null

in Facade at line 346
static void setFacadeApplication(Container|null $app)

Set the application instance.

Boot or tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.

Parameters

Container|null $app

Return Value

void

in Facade at line 356
static mixed __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException

at line 135
static Factory fake(array|callable|null $callback = null)

Register a stub callable that will intercept requests and be able to return stub responses.

Tests only. Stubs persist on the HTTP factory for the worker lifetime.

Parameters

array|callable|null $callback

Return Value

Factory

at line 147
static ResponseSequence fakeSequence(string $urlPattern = '*')

Register a response sequence for the given URL pattern.

Tests only. The sequence and stub persist on the HTTP factory for the worker lifetime.

Parameters

string $urlPattern

Return Value

ResponseSequence

at line 161
static Factory preventStrayRequests(bool $prevent = true)

Indicate that an exception should be thrown if any request is not faked.

Boot or tests only. The policy persists on the HTTP factory for the worker lifetime.

Parameters

bool $prevent

Return Value

Factory

at line 173
static Factory stubUrl(string $url, array|callable|int|PromiseInterface|Response|string $callback)

Stub the given URL using the given callback.

Tests only. The stub persists on the HTTP factory for the worker lifetime.

Parameters

string $url
array|callable|int|PromiseInterface|Response|string $callback

Return Value

Factory

at line 128
static Factory allowStrayRequests(array|null $only = 'null')

No description

Parameters

array|null $only

Return Value

Factory

at line 128
static void assertNothingSent()

No description

Return Value

void

at line 128
static void assertNotSent(callable $callback)

No description

Parameters

callable $callback

Return Value

void

at line 128
static void assertSent(callable $callback)

No description

Parameters

callable $callback

Return Value

void

at line 128
static void assertSentCount(int $count)

No description

Parameters

int $count

Return Value

void

at line 128
static void assertSentInOrder(array $callbacks)

No description

Parameters

array $callbacks

Return Value

void

at line 128
static void assertSequencesAreEmpty()

No description

Return Value

void

at line 128
static ClientInterface createClient(HandlerStack $handlerStack, CookieJar $cookies)

No description

Parameters

HandlerStack $handlerStack
CookieJar $cookies

Return Value

ClientInterface

at line 128
void static()

\Hypervel\Http\Client\PendingRequest async(bool $async = 'true')

Return Value

void

at line 128
static Closure failedConnection(string|null $message = 'null')

No description

Parameters

string|null $message

Return Value

Closure

at line 128
static RequestException failedRequest(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

StreamInterface|string $body
int $status
array $headers

Return Value

RequestException

at line 128
static void flushMacros()

No description

Return Value

void

at line 128
static void flushState()

No description

Return Value

void

at line 128
static Factory forgetConnectionHandlers()

No description

Return Value

Factory

at line 128
static array getConnectionConfig(string $name)

No description

Parameters

string $name

Return Value

array

at line 128
static array getConnectionConfigs()

No description

Return Value

array

at line 128
static callable getConnectionHandler(string $name)

No description

Parameters

string $name

Return Value

callable

at line 128
static array getConnectionOptions(string $name)

No description

Parameters

string $name

Return Value

array

at line 128
static Dispatcher|null getDispatcher()

No description

Return Value

Dispatcher|null

at line 128
static array getGlobalMiddleware()

No description

Return Value

array

at line 128
static Factory globalMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 128
static Factory globalOptions(Closure|array $options)

No description

Parameters

Closure|array $options

Return Value

Factory

at line 128
static Factory globalRequestMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 128
static Factory globalResponseMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

Factory

at line 128
static bool hasConnection(string $name)

No description

Parameters

string $name

Return Value

bool

at line 128
static bool hasMacro(string $name)

No description

Parameters

string $name

Return Value

bool

at line 128
static void macro(string $name, callable|object $macro)

No description

Parameters

string $name
callable|object $macro

Return Value

void

at line 128
static mixed macroCall(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

at line 128
static void mixin(object $mixin, bool $replace = 'true')

No description

Parameters

object $mixin
bool $replace

Return Value

void

at line 128
static bool preventingStrayRequests()

No description

Return Value

bool

at line 128
static Response psr7Response(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

StreamInterface|string $body
int $status
array $headers

Return Value

Response

at line 128
static Factory record()

No description

Return Value

Factory

at line 128
static Collection recorded(callable|null $callback = 'null')

No description

Parameters

callable|null $callback

Return Value

Collection

at line 128
static void recordRequestResponsePair(Request $request, Response|null $response)

No description

Parameters

Request $request
Response|null $response

Return Value

void

at line 128
static Factory registerConnection(string $name, array $config = '[]')

No description

Parameters

string $name
array $config

Return Value

Factory

at line 128
static PromiseInterface response(StreamInterface|string $body = 'null', int $status = '200', array $headers = '[]')

No description

Parameters

StreamInterface|string $body
int $status
array $headers

Return Value

PromiseInterface

at line 128
static ResponseSequence sequence(array $responses = '[]')

No description

Parameters

array $responses

Return Value

ResponseSequence

at line 128
static Factory setConnectionConfig(string $name, array $config)

No description

Parameters

string $name
array $config

Return Value

Factory

at line 128
static mixed withoutGlobalConfiguration(Closure $callback)

No description

Parameters

Closure $callback

Return Value

mixed

at line 128
static PendingRequest accept(string $contentType)

No description

Parameters

string $contentType

Return Value

PendingRequest

at line 128
static PendingRequest acceptJson()

No description

Return Value

PendingRequest

at line 128
static PendingRequest afterResponse(callable $callback)

No description

Parameters

callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest asForm()

No description

Return Value

PendingRequest

at line 128
static PendingRequest asJson()

No description

Return Value

PendingRequest

at line 128
static PendingRequest asMultipart()

No description

Return Value

PendingRequest

at line 128
static PendingRequest attach(array|string $name, resource|string $contents = '\'\'', string|null $filename = 'null', array $headers = '[]')

No description

Parameters

array|string $name
resource|string $contents
string|null $filename
array $headers

Return Value

PendingRequest

at line 128
static array attributes()

No description

Return Value

array

at line 128
static PendingRequest baseUrl(string $url)

No description

Parameters

string $url

Return Value

PendingRequest

at line 128
static PendingRequest beforeSending(callable $callback)

No description

Parameters

callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest bodyFormat(string $format)

No description

Parameters

string $format

Return Value

PendingRequest

at line 128
static Closure buildBeforeSendingHandler()

No description

Return Value

Closure

at line 128
static ClientInterface buildClient()

No description

Return Value

ClientInterface

at line 128
static HandlerStack buildHandlerStack()

No description

Return Value

HandlerStack

at line 128
static Closure buildRecorderHandler()

No description

Return Value

Closure

at line 128
static Closure buildStubHandler()

No description

Return Value

Closure

at line 128
static PendingRequest connection(string $connection, array|null $config = 'null')

No description

Parameters

string $connection
array|null $config

Return Value

PendingRequest

at line 128
static PendingRequest connectTimeout(int|float $seconds)

No description

Parameters

int|float $seconds

Return Value

PendingRequest

at line 128
static PendingRequest contentType(string $contentType)

No description

Parameters

string $contentType

Return Value

PendingRequest

at line 128
static PendingRequest dd()

No description

Return Value

PendingRequest

at line 128
static PromiseInterface delete(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

PromiseInterface

at line 128
static PendingRequest dontTruncateExceptions()

No description

Return Value

PendingRequest

at line 128
static PendingRequest dump()

No description

Return Value

PendingRequest

at line 128
static PromiseInterface get(string $url, JsonSerializable|array|string|null $query = 'null')

No description

Parameters

string $url
JsonSerializable|array|string|null $query

Return Value

PromiseInterface

at line 128
static string|null getConnection()

No description

Return Value

string|null

at line 128
static array getOptions()

No description

Return Value

array

at line 128
static PromiseInterface|null getPromise()

No description

Return Value

PromiseInterface|null

at line 128
static PromiseInterface head(string $url, JsonSerializable|array|string|null $query = 'null')

No description

Parameters

string $url
JsonSerializable|array|string|null $query

Return Value

PromiseInterface

at line 128
static bool isAllowedRequestUrl(string $url)

No description

Parameters

string $url

Return Value

bool

at line 128
static PendingRequest maxRedirects(int $max)

No description

Parameters

int $max

Return Value

PendingRequest

at line 128
static array mergeOptions(mixed ...$options)

No description

Parameters

mixed ...$options

Return Value

array

at line 128
static PromiseInterface patch(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

PromiseInterface

at line 128
static PromiseInterface post(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

PromiseInterface

at line 128
static PendingRequest prependMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 128
static HandlerStack pushHandlers(HandlerStack $handlerStack)

No description

Parameters

HandlerStack $handlerStack

Return Value

HandlerStack

at line 128
static PromiseInterface put(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

PromiseInterface

at line 128
static PromiseInterface query(string $url, JsonSerializable|array $data = '[]')

No description

Parameters

string $url
JsonSerializable|array $data

Return Value

PromiseInterface

at line 128
static PendingRequest replaceHeaders(array $headers)

No description

Parameters

array $headers

Return Value

PendingRequest

at line 128
static PendingRequest retry(array|int $times, Closure|int $sleepMilliseconds = '0', null|callable $when = 'null', bool $throw = 'true')

No description

Parameters

array|int $times
Closure|int $sleepMilliseconds
null|callable $when
bool $throw

Return Value

PendingRequest

at line 128
static RequestInterface runBeforeSendingCallbacks(RequestInterface $request, array $options)

No description

Parameters

RequestInterface $request
array $options

Return Value

RequestInterface

at line 128
static PromiseInterface send(string $method, string $url, array $options = '[]')

No description

Parameters

string $method
string $url
array $options

Return Value

PromiseInterface

at line 128
static PendingRequest setClient(ClientInterface $client)

No description

Parameters

ClientInterface $client

Return Value

PendingRequest

at line 128
static PendingRequest setHandler(callable $handler)

No description

Parameters

callable $handler

Return Value

PendingRequest

at line 128
static PendingRequest sink(StreamInterface|string $to)

No description

Parameters

StreamInterface|string $to

Return Value

PendingRequest

at line 128
static PendingRequest stub(Collection|callable $callback)

No description

Parameters

Collection|callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest throw(null|callable $callback = 'null')

No description

Parameters

null|callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest throwIf(callable|bool $condition, null|callable $callback = 'null')

No description

Parameters

callable|bool $condition
null|callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest throwUnless(callable|bool $condition, null|callable $callback = 'null')

No description

Parameters

callable|bool $condition
null|callable $callback

Return Value

PendingRequest

at line 128
static PendingRequest timeout(int|float $seconds)

No description

Parameters

int|float $seconds

Return Value

PendingRequest

at line 128
static PendingRequest truncateExceptionsAt(int $length)

No description

Parameters

int $length

Return Value

PendingRequest

at line 128
static mixed unless(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

Parameters

mixed $value
null|callable $callback
null|callable $default

Return Value

mixed

at line 128
static mixed when(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')

No description

Parameters

mixed $value
null|callable $callback
null|callable $default

Return Value

mixed

at line 128
static PendingRequest withAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

PendingRequest

at line 128
static PendingRequest withBasicAuth(string $username, string $password)

No description

Parameters

string $username
string $password

Return Value

PendingRequest

at line 128
static PendingRequest withBody(Stringable $content, string|null $contentType = '\'application/json\'')

No description

Parameters

Stringable $content
string|null $contentType

Return Value

PendingRequest

at line 128
static PendingRequest withCookie(SetCookie $cookie)

No description

Parameters

SetCookie $cookie

Return Value

PendingRequest

at line 128
static PendingRequest withCookies(array $cookies, string $domain)

No description

Parameters

array $cookies
string $domain

Return Value

PendingRequest

at line 128
static PendingRequest withDigestAuth(string $username, string $password)

No description

Parameters

string $username
string $password

Return Value

PendingRequest

at line 128
static PendingRequest withHeader(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

PendingRequest

at line 128
static PendingRequest withHeaders(array $headers)

No description

Parameters

array $headers

Return Value

PendingRequest

at line 128
static PendingRequest withMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 128
static PendingRequest withOptions(array $options)

No description

Parameters

array $options

Return Value

PendingRequest

at line 128
static PendingRequest withoutRedirecting()

No description

Return Value

PendingRequest

at line 128
static PendingRequest withoutTelescope()

No description

Return Value

PendingRequest

at line 128
static PendingRequest withoutVerifying()

No description

Return Value

PendingRequest

at line 128
static PendingRequest withQueryParameters(array $parameters)

No description

Parameters

array $parameters

Return Value

PendingRequest

at line 128
static PendingRequest withRequestMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 128
static PendingRequest withResponseMiddleware(callable $middleware)

No description

Parameters

callable $middleware

Return Value

PendingRequest

at line 128
static PendingRequest withTelescopeTags(array<int $, UnitEnum> $tags)

No description

Parameters

array<int $
UnitEnum> $tags

Return Value

PendingRequest

at line 128
static PendingRequest withToken(string $token, string $type = '\'Bearer\'')

No description

Parameters

string $token
string $type

Return Value

PendingRequest

at line 128
static PendingRequest withUrlParameters(array $parameters = '[]')

No description

Parameters

array $parameters

Return Value

PendingRequest

at line 128
static PendingRequest withUserAgent(string|bool $userAgent)

No description

Parameters

string|bool $userAgent

Return Value

PendingRequest