Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSURLRequestMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa Networking MBS MacBase Plugin 7.2 Yes No No Yes, macOS only No
Function: An NSURLRequest object represents a URL load request in a manner independent of protocol and URL scheme.
Example:
msgbox HTMLViewer1.mainFrameMBS.DataSource.Request.url
Notes:
NSURLRequest encapsulates two basic data elements about a URL load request:

The URL to load.
The policy to use when consulting the URL content cache made available by the implementation.

Feedback, Comments & Corrections

Network Service Type Constants

Constant Value Description
NSURLNetworkServiceTypeBackground 3 Specifies that the request is for background traffic (such as a file download).
The service type is used to provide the networking layers a hint of the purpose of the request.
NSURLNetworkServiceTypeDefault 0 Is the default value for an NSURLRequest when created. This value should be left unchanged for the vast majority of requests.
The service type is used to provide the networking layers a hint of the purpose of the request.
NSURLNetworkServiceTypeVideo 2 Specifies that the request is for video traffic.
The service type is used to provide the networking layers a hint of the purpose of the request.
NSURLNetworkServiceTypeVoice 4 Specifies that the request is for voice data.
The service type is used to provide the networking layers a hint of the purpose of the request.
NSURLNetworkServiceTypeVoIP 1 Specifies that the request is for voice over IP control traffic.
The service type is used to provide the networking layers a hint of the purpose of the request.

Sub classes:

Some methods using this class:

Some events for this class:

Some examples which use this class:


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


NSURLRequestCertificateFilterMBS   -   NSURLResponseMBS




Links
MBS Xojo Plugins