Foundation · IOS API REFERENCE
URLResponse
class · iOS 2.0+ · SDK 27.1
class URLResponse
Members (6)
init · iOS 2.0+init
TypeScriptstatic init(URL: string, MIMEType: (string) | null, length: number, name?: (string) | null): URLResponse
Swift declarationinit(url URL: URL, mimeType MIMEType: String?, expectedContentLength length: Int, textEncodingName name: String?)
get · iOS 2.0+mimeType
TypeScriptget mimeType(): (string) | null
Swift declarationvar mimeType: String? { get }
get · iOS 2.0+url
TypeScriptget url(): (string) | null
Swift declarationvar url: URL? { get }
get · iOS 2.0+expectedContentLength
TypeScriptget expectedContentLength(): number
Swift declarationvar expectedContentLength: Int64 { get }
get · iOS 2.0+suggestedFilename
TypeScriptget suggestedFilename(): (string) | null
Swift declarationvar suggestedFilename: String? { get }
get · iOS 2.0+textEncodingName
TypeScriptget textEncodingName(): (string) | null
Swift declarationvar textEncodingName: String? { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
URLResponse.init()
inherited init: cannot prove legal (class declares 2 custom initializers)
All Foundation types →