Alamofire

1. Core

1.1. Session

1.2. Request

1.3. URLRequestConvertible

URLConvertible & URLRequestConvertible

Class Diagram

1.4. HTTPMethod

Class Diagram

1.5. HTTPHeaders

HTTPHeaders: An order-preserving and case-insensitive representation of HTTP headers.

Class Diagram

1.6. ParameterEncoder

Class Diagram

1.7. ParameterEncoding (Deprecated)

Class Diagram

1.8. Protected

Protected is defined as a Property Wrapper:

Class Diagram

1.9. typealias

2. Feature

2.1. CachedResponseHandler

Class Diagram

2.2. RedirectHandler

Class Diagram

2.3. EventMonitor

Class Diagram

2.4. RequestInterceptor

Class Diagram

2.5. Server Trust

Class Diagram

ServerTrustManager: Responsible for managing the mapping of ServerTrustEvaluating values to given hosts.

2.6. AlamofireExtended

Class Diagram

2.6.1. AlamofireExtended protocol

The AlamofireExtended protocol is used as namespace of all public extensions.

Note: Since AlamofireExtended has default implementations, so the class/struct which conform to this protocol can use these default implementation of af directly without implement them.

2.6.2. AlamofireExtension struct

All the public extension functions in Alamofire are implemented under the AlamofireExtension type.

Definition of AlamofireExtension:

2.6.3. AlamofireExtension+URLSessionConfiguration

Use case 1, adding extension for URLSessionConfiguration:

Call the extension functions:

Note: As you can see in this example, extension functions are implemented under the AlamofireExtension, af returns an instance of AlamofireExtension.

Other public extensions defined in Alamofire are listed below.

2.6.4. AlamofireExtension+Bundle

2.6.5. AlamofireExtension+SecTrust

2.6.6. AlamofireExtension+SecPolicy

2.6.7. AlamofireExtension+SecTrustResultType

2.6.8. AlamofireExtension+SecCertificate

2.6.9. AlamofireExtension+Array

2.6.10. AlamofireExtension+OSStatus

3. FAQ

3.1. Result

Where does the Result instance construct from?

URLEncodedFormParameterEncoder -> open func encode<Parameters: Encodable>(...) :

Last updated