Back to Alamofire

Array

docs/docsets/Alamofire.docset/Contents/Resources/Documents/Extensions/Array.html

5.12.0776 B
Original Source

Array

extension Array: AlamofireExtended
extension Array where Element == ServerTrustEvaluating

Available where Element == ServerTrustEvaluating

`

                evaluate(_:forHost:)
                `

Evaluates the given SecTrust value for the given host.

Declaration

Swift

public func evaluate(_ trust: SecTrust, forHost host: String) throws

Parameters

| trust |

The SecTrust value to evaluate.

| | host |

The host for which to evaluate the SecTrust value.

|

Return Value

Whether or not the evaluator considers the SecTrust value valid for host.