DiscordPHP-NHA Documentation

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
see
Request

The DiscordPHP request this extends

Http

Where these are created and sorted into rate-limit buckets

author

Valithor Obsidion valithor@discordphp.org

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
inheritDoc
Return values
string

setBaseUrl()

public setBaseUrl(string $baseUrl) : void
Parameters
$baseUrl : string
On this page

Search results