getStatusRaw method

  1. @experimental
DynamiteRawResponse<Status, void> getStatusRaw()

This method and the response it returns is experimental. The API might change without a major version bump.

Returns a Future containing a DynamiteRawResponse with the raw HttpClientResponse and serialization helpers. Throws a DynamiteApiException if the API call does not return an expected status code.

Status codes:

  • 200: Status returned

See:

Implementation

@experimental
DynamiteRawResponse<Status, void> getStatusRaw() {
  const _headers = <String, String>{
    'Accept': 'application/json',
  };

  const _path = '/status.php';
  return DynamiteRawResponse<Status, void>(
    response: executeRequest(
      'get',
      _path,
      _headers,
      null,
      const {200},
    ),
    bodyType: const FullType(Status),
    headersType: null,
    serializers: jsonSerializers,
  );
}