authorizationExecutor method

DynCallExecutor<E> authorizationExecutor(
  1. DynCallCredentialParser<E> credentialParser,
  2. HttpMethod method, {
  3. String? path,
  4. String? fullPath,
  5. Map<String, String>? parametersMap,
  6. Map<String, String>? parametersStatic,
  7. Map<String, ParameterProvider>? parametersProviders,
  8. dynamic noQueryString = false,
  9. Credential? authorization,
  10. List<String>? authorizationFields,
  11. Object? body,
  12. Object? bodyBuilder,
  13. String? bodyType,
  14. E? errorResponse,
  15. int errorMaxRetries = 3,
  16. HTTPOutputValidator? outputValidator,
  17. HTTPOutputFilter? outputFilter,
  18. HTTPJSONOutputFilter? jsonOutputFilter,
  19. String? outputFilterPattern,
})

Configure and define the call executor, using an Authorization request. See DynCallHttpExecutor fields documentation.

Implementation

DynCallExecutor<E> authorizationExecutor(
    DynCallCredentialParser<E> credentialParser, HttpMethod method,
    {String? path,
    String? fullPath,
    Map<String, String>? parametersMap,
    Map<String, String>? parametersStatic,
    Map<String, ParameterProvider>? parametersProviders,
    noQueryString = false,
    Credential? authorization,
    List<String>? authorizationFields,
    Object? body,
    Object? bodyBuilder,
    String? bodyType,
    E? errorResponse,
    int errorMaxRetries = 3,
    HTTPOutputValidator? outputValidator,
    HTTPOutputFilter? outputFilter,
    HTTPJSONOutputFilter? jsonOutputFilter,
    String? outputFilterPattern}) {
  var credentialInterceptor = _CredentialInterceptor(credentialParser);

  return factory.define(call, method,
      path: path,
      fullPath: fullPath,
      parametersMap: parametersMap,
      parametersStatic: parametersStatic,
      parametersProviders: parametersProviders,
      noQueryString: noQueryString,
      authorization: authorization,
      authorizationFields: authorizationFields,
      body: body,
      bodyBuilder: bodyBuilder,
      bodyType: bodyType,
      errorResponse: errorResponse,
      errorMaxRetries: errorMaxRetries,
      outputValidator: outputValidator,
      outputFilter: outputFilter,
      jsonOutputFilter: jsonOutputFilter,
      outputFilterPattern: outputFilterPattern,
      outputInterceptor: credentialInterceptor.interceptOutput);
}