Serializes a CFHTTPMessage object.
SDKs
- iOS 2.0+
- macOS 10.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
func CFHTTPMessageCopySerializedMessage(_ message: CFHTTPMessage) -> Unmanaged<CFData>?
Parameters
request
The message to serialize.
Return Value
A CFData
object containing the serialized message, or NULL
if there was a problem creating the object. Ownership follows the The Create Rule.
Discussion
This function returns a copy of a CFHTTPMessage
object in serialized format that is ready for transmission.