-
Notifications
You must be signed in to change notification settings - Fork 0
Home
@kerbymart edited this page Jul 26, 2025
·
1 revision
Welcome to the HttpClient wiki!
sequenceDiagram
participant Client
participant HttpClient
participant GetRequest
participant RequestBuilder
participant Server
Client->>HttpClient: get(url)
HttpClient->>GetRequest: new GetRequest(url)
GetRequest-->>Client: return request builder
Client->>GetRequest: configure (headers, params)
Client->>GetRequest: asJson() or asString()
GetRequest->>RequestBuilder: create request
RequestBuilder->>Server: Send HTTP GET request
Server-->>RequestBuilder: Response
RequestBuilder->>GetRequest: Response callback
GetRequest->>Client: Process response via Promise
This diagram shows the flow of a typical GET request:
- Client calls HttpClient.get() with a URL
- HttpClient creates a new GetRequest instance
- Client configures the request (optional headers, query parameters)
- Client calls asJson() or asString() to execute the request
- The GetRequest creates a RequestBuilder and sends the request
- Server responds with data
- The response is processed and returned to the client via Promise