Skip to content
@kerbymart edited this page Jul 26, 2025 · 1 revision

Welcome to the HttpClient wiki!

GET Request Sequence Diagram

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
Loading

This diagram shows the flow of a typical GET request:

  1. Client calls HttpClient.get() with a URL
  2. HttpClient creates a new GetRequest instance
  3. Client configures the request (optional headers, query parameters)
  4. Client calls asJson() or asString() to execute the request
  5. The GetRequest creates a RequestBuilder and sends the request
  6. Server responds with data
  7. The response is processed and returned to the client via Promise

Clone this wiki locally