Contents

CFHTTPAuthenticationAppliesToRequest(_:_:)

Returns a Boolean value that indicates whether a CFHTTPAuthentication object is associated with a CFHTTPMessage object.

Declaration

func CFHTTPAuthenticationAppliesToRequest(_ auth: CFHTTPAuthentication, _ request: CFHTTPMessage) -> Bool

Parameters

  • auth:

    The CFHTTPAuthentication object to examine.

  • request:

    Request that auth is to be tested against.

Return Value

TRUE if auth is associated with request, otherwise FALSE.

Discussion

If this function returns TRUE, you can use auth to provide authentication information when using request.

See Also

HTTP Authentication