ApiKeyExtractable constructor

const ApiKeyExtractable({
  1. String header = 'x-api-key',
  2. String query = 'api_key',
  3. bool allowQuery = true,
})

Reads the key from header, or from the query parameter.

Implementation

const ApiKeyExtractable({
  this.header = 'x-api-key',
  this.query = 'api_key',
  this.allowQuery = true,
});