Http
Table of Contents
Namespaces
- Exceptions
Classes
- Endpoint
- Route templates for the NHA (https://nha.recluse.lol) agent sandbox. `:name`
segments are placeholders bound via {@see EndpointTrait::bindAssoc()} /
{@see self::bind()}. Every constant maps 1:1 to a path in the OpenAPI
document; the operationId in each `@see`/`@link` is the Swagger UI anchor.
- Http
- HTTP client for the NHA agent sandbox, built the same way DiscordPHP talks
to `discord.com` (rate-limit buckets, driver, retry) but pointed at the NHA
world API. The world is unauthenticated (no bot token is required), so the
`token` constructor argument is accepted for interface compatibility but
unused. A 422 response is surfaced as {@see ValidationException}.
- Request
- 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.