HttppRequest constructor

HttppRequest({
  1. required HttppVerb verb,
  2. required Uri uri,
  3. HttppHeaders? headers,
  4. HttppBody? body,
  5. void onSuccess(
    1. HttppResponse
    )?,
  6. void onResult(
    1. HttppResponse
    )?,
  7. void onError(
    1. Object
    )?,
  8. Duration? timeout,
})

Implementation

HttppRequest(
    {required HttppVerb verb,
    required Uri uri,
    this.headers,
    this.body,
    this.onSuccess,
    this.onResult,
    this.onError,
    Duration? timeout})
    : this._verb = verb,
      this._uri = uri,
      this._timeout = timeout;