LibraryActive

Alamofire

Type aliases reference for Alamofire, including Parameters, AFDataResponse, AFDownloadResponse, AFResult, AdaptHandler, RetryHandler, and DisabledEvaluator.

Open source page

Product features

Product features

AdaptHandler Typealias

RequestAdapter closure definition.

AFDataResponse Typealias

Default type of DataResponse returned by Alamofire, with an AFError Failure type.

AFDownloadResponse Typealias

Default type of DownloadResponse returned by Alamofire, with an AFError Failure type.

AFError

Error type returned by Alamofire, encompassing various error types with associated reasons.

AFInfo

Namespace for informational Alamofire values.

AFResult Typealias

Default type of Result returned by Alamofire, with an AFError Failure type.

AlamofireExtended

Extensions for various types like Bundle, SecTrust, SecPolicy, Array, SecCertificate, OSStatus, SecTrustResultType, and CharacterSet.

AuthenticationCredential

Types adopting the AuthenticationCredential protocol can be used to authenticate URLRequests.

AuthenticationError

Represents authentication failures when using AuthenticationInterceptor.

Automatic Retry

Automatically retry requests with configurable policies.

Chainable Request / Response Methods

Allows chaining request and response methods for concise code.

Chainable Request / Response Methods

Chainable request and response methods for concise networking code.

Combine Support

Integration with Apple's Combine framework for reactive networking.

DataDecoder

Protocol for decoding data, with automatic conformance for JSONDecoder and PropertyListDecoder.

DataRequest

Handles in-memory Data download using URLSessionDataTask.

DataStreamRequest

Streams HTTP response Data through a Handler closure.

DataStreamSerializer

A type which can serialize incoming Data.

DownloadRequest

Downloads Data to a file on disk using URLSessionDownloadTask.

Global AF Variable

A reference to Session.default for quick bootstrapping and examples.

MultipartFormData

Constructs multipart/form-data for uploads, supporting in-memory and file-based encoding.

NetworkReachabilityManager

Listens for reachability changes of hosts and addresses on cellular and WiFi interfaces.

OfflineRetrier

Uses NWPathMonitor to detect connectivity restoration and retry failed requests.

ParameterEncoder

A type that can encode any Encodable type into a URLRequest.

ParameterEncoding

A type used to define how a set of parameters are applied to a URLRequest.

Parameters Typealias

A dictionary of parameters to apply to a URLRequest.

RequestDelegate

Protocol abstraction for Request's communication back to the SessionDelegate.

RetryResult

Outcome of determination whether retry is necessary.

Session Management

Session creates and manages request types, providing queuing, interception, trust management, redirect handling, and response cache handling.

Swift Concurrency Support

Supports Swift concurrency back to iOS 13, macOS 10.15, tvOS 13, and watchOS 6.

Swift Concurrency Support

Support for async/await and other Swift concurrency features back to iOS 13, macOS 10.15, tvOS 13, and watchOS 6.

Upload File / Data / Stream / MultipartFormData

Upload files, data, streams, and multipart form data.

UploadRequest

Handles Data upload from memory, file, or stream using URLSessionUploadTask.

URLConvertible

Types adopting the URLConvertible protocol can be used to construct URLs.

URL / JSON Parameter Encoding

Support for URL and JSON parameter encoding.

URLRequestConvertible

Extensions for URLRequest, URL, URLComponents, and String to conform to URLRequestConvertible or URLConvertible.