Instance Method インスタンスメソッド

initWithURL:MIMEType:expectedContentLength:textEncodingName:

Creates an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values. 初期化されたNSURLResponseオブジェクトを、それら与えられた値に設定されたURL、MIMEタイプ、長さ、そしてテキストエンコーディングで作成します。

Declaration 宣言

- (instancetype)initWithURL:(NSURL *)URL 
                   MIMEType:(NSString *)MIMEType 
      expectedContentLength:(NSInteger)length 
           textEncodingName:(NSString *)name;

Parameters パラメータ

URL

The URL for the new object. 新しいオブジェクトに対するURL。

MIMEType

The MIME type. MIMEタイプ。

length

The expected content length.This value should be –1 if the expected length is undetermined 予想された内容の長さ。この値は–1であるべきです、もし予想された長さが未定ならば。

name

The text encoding name. This value may be nil. テキストエンコーディング名。この値はnilであるかもしれません。

Return Value 戻り値

The initialized URL response. 初期化されたURL応答。

Discussion 議論

This is the designated initializer for NSURLResponse. これは、NSURLResponseに対する指定イニシャライザです。

See Also 参照

Related Documentation 関連文書