Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CFHTTPMessageCreateEmptyMBS(isRequest as boolean) as CFHTTPMessageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Creates a new empty http message.
Notes:
Returns nil on any error.

Creates an empty request or response, which you can then append bytes to via CFHTTPMessage.AppendBytes(). The HTTP header information will be parsed out as the bytes are appended.

Feedback, Comments & Corrections

CFHTTPMessageCreateRequestMBS(requestMethod as CFStringMBS, url as CFURLMBS, httpVersion as CFStringMBS) as CFHTTPMessageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Creates a new HTTP message as a request.

Some examples using this method:

Feedback, Comments & Corrections

CFHTTPMessageCreateResponseMBS(statusCode as Integer, statusDescription as CFStringMBS, httpVersion as CFStringMBS) as CFHTTPMessageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Creates a new HTTP message as a response.
Notes: Pass nil to use the standard description for the given status code, as found in RFC 2616.

Feedback, Comments & Corrections

kCFHostMBSGetTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 5.2 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFHostMBS object.

Feedback, Comments & Corrections

kCFHTTPMessageMBSGetTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFHTTPMessageMBS object.

Feedback, Comments & Corrections

kCFReadStreamMBSGetTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFReadStreamMBS object.

Feedback, Comments & Corrections

kCFSocketMBSGetTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFSocketMBS object.

Feedback, Comments & Corrections

kCFWriteStreamMBSGetTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation Network MBS MacCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFWriteStreamMBS object.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCF Plugin.




Links
MBS Xojo Plugins