header method

FliqRequest header(
  1. String key,
  2. String value
)

Adds a header to the request.

Example:

final response = await client.get('https://example.com').header('Authorization', 'Bearer token').go();

Implementation

FliqRequest header(String key, String value) {
  _request.headers.add(key, value);
  return this;
}