INNER CODE UNIT · Dart

headers

dreautall/waterfly-iii · lib/auth.dart:233

  Map<String, String> headers() {
    return <String, String>{
      HttpHeaders.authorizationHeader: "Bearer $_apiKey",
      HttpHeaders.acceptHeader: "application/json",
      ..._customHeaders,
    };
  }

  static Future<AuthUser> create(
    String host,
    String apiKey, {
    Map<String, String>? customHeaders,
  }) async {
    final Logger log = Logger("Auth.AuthUser");
    log.config("AuthUser->create($host)");

    // This call is on purpose not using the Swagger API
    final http.Client client = httpClient;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…