Request
extends Request
in package
Represents a single queued HTTP request against the NHA world. Identical in behaviour to the DiscordPHP request it extends; it exists only so NHA transport code depends on an NHA-owned type rather than reaching into `Discord\Http` directly.
Tags
Table of Contents
Properties
- $baseUrl : string
- Base URL this request is sent against. Defaults to the live world ({@see Http::BASE_URL}); {@see Http::queueRequest()} overrides it with the client's configured base (env `NHA_BASE_URL` / option `nha_base_url`) so a local NHA instance can be targeted without touching the constant.
Methods
- getUrl() : string
- setBaseUrl() : void
Properties
$baseUrl
Base URL this request is sent against. Defaults to the live world ({@see Http::BASE_URL}); {@see Http::queueRequest()} overrides it with the client's configured base (env `NHA_BASE_URL` / option `nha_base_url`) so a local NHA instance can be targeted without touching the constant.
protected
string
$baseUrl
= \NHA\Http\Http::BASE_URL
Methods
getUrl()
public
getUrl() : string
Tags
Return values
stringsetBaseUrl()
public
setBaseUrl(string $baseUrl) : void
Parameters
- $baseUrl : string