Type Method 型メソッド

setProperty:forKey:inRequest:

Sets the property associated with the specified key in the specified request. 指定されたリクエストの中の指定されたキーと結び付けられたプロパティを設定します。

Declaration 宣言

+ (void)setProperty:(id)value 
             forKey:(NSString *)key 
          inRequest:(NSMutableURLRequest *)request;

Parameters パラメータ

value

The value to set for the specified property. 指定されたプロパティに対して設定されることになる値。

key

The key for the specified property. 指定されたプロパティに対するキー。

request

The request for which to create the property. それに対してプロパティを作成することになるリクエスト。

Discussion 議論

Use this method to provide an interface for protocol implementors to customize protocol-specific information associated with NSMutableURLRequest objects. このメソッドを使って、NSMutableURLRequestオブジェクトに関連するプロトコル特有情報をカスタマイズするあるインターフェイスをプロトコル実装側に提供してください。

See Also 参照

Getting and Setting Request Properties リクエストプロパティの取得と設定