Platforms to show: All Mac Windows Linux Cross-Platform
NSMutableURLRequestMBS class
Super class: NSURLRequestMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | Cocoa | MBS MacBase Plugin | 9.6 | Yes | No | No | Yes, macOS only | No |
Notes:
NSMutableURLRequest is a subclass of NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable NSURLRequest for each load.
This programming model is supported by the following contract between NSMutableURLRequest and NSURLConnection: NSURLConnection makes a deep copy of each NSMutableURLRequest object passed to one of its initializers.
Subclass of the NSURLRequestMBS class.
- 14 methods
- method addValue(value as string, field as string)
- method Constructor(url as string)
- method Constructor(url as string, cachePolicy as Integer, timeoutInterval as Double)
- method setAllHTTPHeaderFields(headerFields as Dictionary)
- method setCachePolicy(policy as Integer)
- method setHTTPBody(data as MemoryBlock)
- method setHTTPMethod(HTTPMethod as string)
- method setHTTPShouldHandleCookies(should as boolean)
- method setHTTPShouldUsePipelining(shouldUsePipelining as boolean)
- method setMainDocumentURL(url as string)
- method setNetworkServiceType(networkServiceType as Integer)
- method setTimeoutInterval(seconds as Double)
- method setURL(url as string)
- method setValue(value as string, field as string)
Super class NSURLRequestMBS
- property Handle as Integer
- 16 methods
- method allHTTPHeaderFields as Dictionary
- method cachePolicy as Integer
- method Constructor(url as string)
- method Constructor(url as string, cachePolicy as Integer, timeoutInterval as Double)
- method copy as NSURLRequestMBS
- method HTTPBody as memoryblock
- method HTTPMethod as string
- method HTTPShouldHandleCookies as boolean
- method HTTPShouldUsePipelining as boolean
- method isHTTPRequest as boolean
- method mainDocumentURL as string
- method mutableCopy as NSMutableURLRequestMBS
- method networkServiceType as Integer
- method timeoutInterval as Double
- method URL as string
- method valueForHTTPHeaderField(field as string) as string
- 3 shared methods
- shared method requestWithHandle(Handle as Integer) as NSURLRequestMBS
- shared method requestWithURL(url as string) as NSURLRequestMBS
- shared method requestWithURL(url as string, cachePolicy as Integer, timeoutInterval as Double) as NSURLRequestMBS
- 11 constants
- const NSURLRequestReloadIgnoringCacheData = 1
- const NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4
- const NSURLRequestReloadRevalidatingCacheData = 5
- const NSURLRequestReturnCacheDataDontLoad = 3
- const NSURLRequestReturnCacheDataElseLoad = 2
- const NSURLRequestUseProtocolCachePolicy = 0
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. |
This class has no sub classes.
Some methods using this class:
- NSURLRequestMBS.mutableCopy as NSMutableURLRequestMBS
Blog Entries
- Notes from the last days
- MBS Real Studio Plugins, version 11.3pr6
- Nearly 2000 new Functions in the 9.6 prerelease of MBS
The items on this page are in the following plugins: MBS MacBase Plugin.
Links
MBS FileMaker blog