@skele/classic
Version:
Skele is an architectural framework that assists with building data-driven apps with React or React Native.
32 lines (16 loc) • 558 B
Markdown
# HTTP
Functions for working with HTTP requests and responses.
## `get(url, [options])`
Executes a GET request.
## `post(url, jsonBody, [options])`
Executes a POST request.
## `asResponse(value, [fromUri])`
Packs a value in a read response format.
## `failedResponse(message, [value], [fromUri])`
Packs a message in a failed read response format.
## `responseMeta(response)`
Gets the response metadata.
## `isResponse(response)`
Checks if a response is a valid read response.
## `isOK(response)`
Checks if a response has an OK (`2xx`) status.