Platforms to show: All Mac Windows Linux Cross-Platform
NSURLResponseMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Networking | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSURLResponse encapsulates the metadata associated with a URL load. Note that NSURLResponse objects do not contain the actual bytes representing the content of a URL.
All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
- property Handle as Integer
- 10 methods
- method allHeaderFields as Dictionary
- method Constructor(URL as string, MimeType as string, expectedContentLength as Integer, textEncodingName as string)
- method copy as NSURLResponseMBS
- method expectedContentLength as int64
- method isHTTPResponse as boolean
- method MIMEType as string
- method statusCode as Integer
- method suggestedFilename as string
- method textEncodingName as string
- method URL as string
- shared method localizedStringForStatusCode(statusCode as Integer) as string
Constants
Constant | Value | Description |
---|---|---|
NSURLResponseUnknownLength | -1 | The constant for use with expectedContentLength for an unknown length. |
This class has no sub classes.
Some methods using this class:
- NSCachedURLResponseMBS.Constructor(response as NSURLResponseMBS, data as MemoryBlock, userInfo as Dictionary = nil, storagePolicy as Integer = 0)
- NSURLAuthenticationChallengeMBS.failureResponse as NSURLResponseMBS
- NSURLConnectionMBS.sendSynchronousRequest(request as NSURLRequestMBS, byref response as NSURLResponseMBS, byref error as NSErrorMBS) as Memoryblock
Some properties using for this class:
- NSCachedURLResponseMBS.Response as NSURLResponseMBS
- NSURLSessionTaskMBS.response as NSURLResponseMBS
- NSURLSessionTaskTransactionMetricsMBS.response as NSURLResponseMBS
- WKNavigationResponseMBS.response as NSURLResponseMBS
Some events using this class:
- DesktopWKWebViewControlMBS.downloadDecideDestinationUsingResponse(download as WKDownloadMBS, response as NSURLResponseMBS, suggestedFilename as String, byref destination as FolderItem)
- DesktopWKWebViewControlMBS.downloadWillPerformHTTPRedirection(download as WKDownloadMBS, response as NSURLResponseMBS, request as NSURLRequestMBS, byref DownloadRedirectPolicy as Integer)
- NSURLConnectionMBS.didReceiveResponse(response as NSURLResponseMBS)
- NSURLConnectionMBS.willSendRequest(request as NSURLRequestMBS, redirectResponse as NSURLResponseMBS) as NSURLRequestMBS
- NSURLDownloadMBS.willResumeWithResponse(response as NSURLResponseMBS, startingByte as Int64)
- NSURLDownloadMBS.willSendRequest(request as NSURLRequestMBS, redirectResponse as NSURLResponseMBS) as NSURLRequestMBS
- SLRequestMBS.performRequestCompleted(responseData as memoryblock, urlResponse as NSURLResponseMBS, error as NSErrorMBS, tag as Variant)
- WKWebViewControlMBS.downloadDecideDestinationUsingResponse(download as WKDownloadMBS, response as NSURLResponseMBS, suggestedFilename as String, byref destination as FolderItem)
- WKWebViewIOSControlMBS.downloadDecideDestinationUsingResponse(download as WKDownloadMBS, response as NSURLResponseMBS, suggestedFilename as String, byref destination as FolderItem)
- WKWebViewIOSControlMBS.downloadWillPerformHTTPRedirection(download as WKDownloadMBS, response as NSURLResponseMBS, request as NSURLRequestMBS, byref DownloadRedirectPolicy as Integer)
Some examples using this class:
- /Mac64bit/Post To Facebook
- /Mac64bit/Post To Twitter
- /Mac64bit/WebKit2/WebView Resources
- /MacBase/NSURLConnection test
- /MacBase/NSURLDownload/NSURLDownload Example
- /MacBase/NSURLDownload/NSURLDownload test
- /MacCocoa/NSURLConnection test
- /MacFrameworks/NSURLSession Test
The items on this page are in the following plugins: MBS MacBase Plugin.
NSURLRequestMBS - NSURLSessionConfigurationMBS