How nidux/niduxrest works
NiduxRest is a lightweight, instance-based PHP HTTP client. A caller fluently configures a request, optionally prepares a body, and sends it to an external HTTP service; the client constructs a Response DTO for the result. Request configuration includes methods, headers, authentication, proxies, cookies, TLS verification, and custom cURL options. Source excerpts show the request-to-body, method, transport, and response construction relationships; README examples document the caller workflow and response capabilities.
Main entry points: Request.php Fluent request · Body.php Body preparation · Exception.php Client exception · Method.php HTTP methods
Components 7
Request building
- Fluent request
src/Request.php - HTTP methods
src/Enum/Method.php - Client exception
src/Exception.php
Payload handling
- Body preparation
src/Request/Body.php
Response handling
- Response DTO
src/Response.php
Other components
- PHP caller
- HTTP service
Connections 8
- PHP caller → Fluent request: configures
README.md - Fluent request → HTTP methods: selects method
src/Request.php - Fluent request → Body preparation: prepares body
src/Request.php - Fluent request → HTTP service: sends cURL request
src/Request.php - Fluent request → Response DTO: constructs response
src/Request.php - Fluent request → Client exception: throws on failure
src/Request.php - Body preparation → Client exception: throws for missing file
src/Request/Body.php - Fluent request → PHP caller: returns response
README.md