One Logo Pool Ball
Foundation · IOS API REFERENCE

URLResponse

class · iOS 2.0+ · SDK 27.1

class URLResponse

Members (6)

init · iOS 2.0+

init

TypeScript
static init(URL: string, MIMEType: (string) | null, length: number, name?: (string) | null): URLResponse
Swift declaration
init(url URL: URL, mimeType MIMEType: String?, expectedContentLength length: Int, textEncodingName name: String?)
get · iOS 2.0+

mimeType

TypeScript
get mimeType(): (string) | null
Swift declaration
var mimeType: String? { get }
get · iOS 2.0+

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL? { get }
get · iOS 2.0+

expectedContentLength

TypeScript
get expectedContentLength(): number
Swift declaration
var expectedContentLength: Int64 { get }
get · iOS 2.0+

suggestedFilename

TypeScript
get suggestedFilename(): (string) | null
Swift declaration
var suggestedFilename: String? { get }
get · iOS 2.0+

textEncodingName

TypeScript
get textEncodingName(): (string) | null
Swift declaration
var 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 →