getText method

Future<String> getText(
  1. String absolutePath
)

GET a raw text endpoint (e.g. /metrics) outside the versioned API.

Implementation

Future<String> getText(String absolutePath) async {
  final response = await _transport.send(
    'GET',
    baseUrl.replace(path: absolutePath),
    headers: _headers(),
  );
  return response.body;
}