Contents

CFHTTPMessageCopyHeaderFieldValue(_:_:)

Gets the value of a header field from a CFHTTPMessage object.

Declaration

func CFHTTPMessageCopyHeaderFieldValue(_ message: CFHTTPMessage, _ headerField: CFString) -> Unmanaged<CFString>?

Parameters

  • message:

    The message to examine.

  • headerField:

    The header field to copy.

Return Value

A CFString object containing a copy of the field specified by headerField, or NULL if there was a problem creating the object of if the specified header does not exist. Ownership follows the The Create Rule.

See Also

HTTP Messages