Gets the value of a header field from a CFHTTPMessage
object.
SDKs
- iOS 2.0+
- macOS 10.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
CFString Ref CFHTTPMessageCopyHeaderFieldValue(CFHTTPMessage Ref message, CFString Ref headerField);
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 header
, or NULL
if there was a problem creating the object of if the specified header does not exist. Ownership follows the The Create Rule.