Docr::Client
Define the Docr::Client class for making HTTP requests to the Docker API.
Constructors
Instance methods
call(method : String, url : String | URI, headers : HTTP::Headers | Nil = nil, body : IO | Slice(UInt8) | String | Nil = nil, &)
Makes an HTTP request to the Docker API.
- method: The HTTP method (e.g., "GET", "POST", "PUT", "DELETE").
- url: The URL or URI for the API endpoint.
- headers: Optional HTTP headers.
- body: Optional request body (e.g., JSON payload).
- &block: A block to process the HTTP response.