Title: Theory / Important / CS / Programming / Objective-C / Library / NS / URL

Typ: NSURLResponse
Meaning: The metadata associated with the response to a URL load request, independent of protocol and URL scheme.
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc

Variable: urlResponse.URL
Meaning: The URL for the response.
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Typ: NSURL *
Variables: NSURLResponse urlResponse

Variable: urlResponse.textEncodingName
Meaning: The name of the text encoding provided by the response’s originating source.
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Variables: NSURLResponse urlResponse

Variable: urlResponse.MIMEType
Meaning: The MIME type of the response.
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Variables: NSURLResponse urlResponse

Variable: urlResponse.suggestedFilename
Meaning: A suggested filename for the response data.
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Variables: NSURLResponse urlResponse
Extra: Accessing this property attempts to generate a filename using the following information, in order:
A filename specified using the content disposition header.
The last path component of the URL.
The host of the URL.
If the host of URL can't be converted to a valid filename, the filename “unknown” is used.
In most cases, this property appends the proper file extension based on the MIME type. Accessing this property always returns a valid filename regardless of whether the resource is saved to disk.

Variable: NSURLResponseUnknownLength
Meaning: todo
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Variables: NSURLResponse urlResponse

Variable: urlResponse.expectedContentLength
Meaning: The expected length of the response’s content or NSURLResponseUnknownLength
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Variables: NSURLResponse urlResponse

Instruction: [urlResponse
  initWithURL:URL
  MIMEType:MIMEType
  expectedContentLength:length
  textEncodingName:name
]
Page: https://developer.apple.com/documentation/foundation/nsurlresponse?language=objc
Effect: Creates an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values.
Variables: NSURLResponse urlResponse

Typ: NSURLRequest
Meaning: A URL load request that is independent of protocol or URL scheme.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc

Instruction: [[NSURLRequest alloc]
  initWithURL:URL
  cachePolicy:cachePolicy
  timeoutInterval:timeoutInterval
]
[NSURLRequest
  requestWithURL:URL
  cachePolicy:cachePolicy
  timeoutInterval:timeoutInterval
]
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Returns: a URL request with the specified URL, cache policy, and timeout values.
Variables: NSURLRequest urlRequest

Instruction: [[NSURLRequest alloc]
  initWithURL:URL
]
[NSURLRequest
  requestWithURL:URL
]
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Returns: A URL load request that is independent of protocol or URL scheme.
Variables: NSURLRequest urlRequest

Instruction: [urlRequest
  valueForHTTPHeaderField:field
]
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Returns: the value of the specified HTTP header field.
Variables: NSURLRequest urlRequest

Variable: urlRequest.cachePolicy
Meaning: The request’s cache policy.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.mainDocumentURL
Meaning: The main document URL associated with the request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.allHTTPHeaderFields
Meaning: A dictionary containing all of the HTTP header fields for a request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.timeoutInterval
Meaning: The request’s timeout interval, in seconds.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.allowsCellularAccess
Meaning: whether the request is allowed to use the cellular radio (if present).
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.allowsConstrainedNetworkAccess
Meaning: whether connections may use the network when the user has specified Low Data Mode.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.allowsExpensiveNetworkAccess
Meaning: whether connections may use a network interface that the system considers expensive.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.networkServiceType
Meaning: The network service type of the request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Typ: NSURLRequestNetworkServiceType
Variables: NSURLRequest urlRequest

Variable: urlRequest.supportsSecureCoding
Meaning: whether the NSURLRequest implements the NSSecureCoding protocol.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.attribution
Meaning: The entity that initiates the network request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Typ: NSURLRequestAttribution
Variables: NSURLRequest urlRequest

Variable: urlRequest.assumesHTTP3Capable
Meaning: Whether assumesHTTP3Capable
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.HTTPShouldUsePipelining
Meaning: whether the request should continue transmitting data before receiving a response from an earlier transmission.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.HTTPShouldHandleCookies
Meaning: whether the default cookie handling will be used for this request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.HTTPBodyStream
Meaning: The request body as an input stream.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.HTTPBody
Meaning: The request body.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Variable: urlRequest.URL
Meaning: The URL being requested.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Typ: NSURL
Variables: NSURLRequest urlRequest

Variable: urlRequest.HTTPMethod
Meaning: The HTTP request method.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest

Typ: NSURLRequestCachePolicy
TypMeaning: specify interaction with the cached responses.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest
Value: NSURLRequestUseProtocolCachePolicy
Use the caching logic defined in the protocol implementation, if any, for a particular URL load request.
Value2: NSURLRequestReloadIgnoringLocalCacheData
The URL load should be loaded only from the originating source.
Value3: NSURLRequestReloadIgnoringLocalAndRemoteCacheData
Ignore local cache data, and instruct proxies and other intermediates to disregard their caches so far as the protocol allows.
Value4: NSURLRequestReloadIgnoringCacheData
Replaced by NSURLRequestReloadIgnoringLocalCacheData.
Value5: NSURLRequestReturnCacheDataElseLoad
Use existing cache data, regardless or age or expiration date, loading from originating source only if there is no cached data.
Value6: NSURLRequestReturnCacheDataDontLoad
Use existing cache data, regardless or age or expiration date, and fail if no cached data is available.
Value7: NSURLRequestReloadRevalidatingCacheData
Use cache data if the origin source can validate it; otherwise, load from the origin.

Typ: NSURLRequestNetworkServiceType
TypMeaning: specify how a request uses network resources.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Variables: NSURLRequest urlRequest
Value: NSURLNetworkServiceTypeDefault
A service type for standard network traffic.
Value2: NSURLNetworkServiceTypeVoIP
A service type for VoIP traffic.
Deprecated
Value3: NSURLNetworkServiceTypeVideo
A service type for video traffic.
Value4: NSURLNetworkServiceTypeBackground
A service type for background traffic.
Value5: NSURLNetworkServiceTypeVoice
A service type for voice traffic.
Value6: NSURLNetworkServiceTypeCallSignaling
A service type for call signaling.
Value7: NSURLNetworkServiceTypeResponsiveData
A service type for data that the user is actively waiting for.
Value8: NSURLNetworkServiceTypeAVStreaming
A service type for streaming audio/video data.
Value9: NSURLNetworkServiceTypeResponsiveAV
A service type for responsive (time-sensitive) audio/video data.

Typ: NSURLRequestAttribution
TypMeaning: The entities that can make a network request.
Page: https://developer.apple.com/documentation/foundation/nsurlrequest?language=objc
Value: NSURLRequestAttributionDeveloper
A developer-initiated network request.
Value2: NSURLRequestAttributionUser
The user explicitly directs the app to make a network request.

Typ: NSMutableURLRequest TODO
Meaning: A mutable URL load request that is independent of protocol or URL scheme.
Page: https://developer.apple.com/documentation/foundation/nsmutableurlrequest?language=objc