Type Aliases

The following type aliases are available globally.

  • Undocumented

    Declaration

    Swift

    public typealias Session = Alamofire.Session
  • Represents an HTTP method.

    Declaration

    Swift

    public typealias Method = Alamofire.HTTPMethod
  • Choice of parameter encoding.

    Declaration

    Swift

    public typealias ParameterEncoding = Alamofire.ParameterEncoding
  • Undocumented

    Declaration

    Swift

    public typealias JSONEncoding = Alamofire.JSONEncoding
  • Undocumented

    Declaration

    Swift

    public typealias URLEncoding = Alamofire.URLEncoding
  • Multipart form.

    Declaration

    Swift

    public typealias RequestMultipartFormData = Alamofire.MultipartFormData
  • Multipart form data encoding result.

    Declaration

    Swift

    public typealias DownloadDestination = Alamofire.DownloadRequest.Destination
  • Represents Request interceptor type that can modify/act on Request

    Declaration

    Swift

    public typealias RequestInterceptor = Alamofire.RequestInterceptor
  • Closure to be executed when a request has completed.

    Declaration

    Swift

    public typealias Completion = (_ result: Result<Moya.Response, MoyaError>) -> Void
  • Closure to be executed when progress changes.

    Declaration

    Swift

    public typealias ProgressBlock = (_ progress: ProgressResponse) -> Void