Class: URLRequestHeader

URLRequestHeader

URLRequestHeader オブジェクトは 1 つの HTTP のリクエストヘッダーをカプセル化し、名前と値のペアを構成します。
URLRequestHeader オブジェクトは URLRequest クラスの requestHeaders プロパティで使用されます。

A URLRequestHeader object encapsulates a single HTTP request header and consists of a name/value pair.
URLRequestHeader objects are used in the requestHeaders property of the URLRequest class.

new next2d.net.URLRequestHeader (name, value)

NameTypeDefaultDescription
namestring""optional
valuestring""optional

Members

next2d.net.URLRequestHeader.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.net.URLRequestHeader

name string readonly

HTTP リクエストヘッダー名(Content-Type や SOAPAction など)です。
An HTTP request header name (such as Content-Type or SOAPAction).

Default Value:
  • ""

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.net.URLRequestHeader

value string readonly

name プロパティに関連付けられた値(text/plain など)です。
The value associated with the name property (such as text/plain).

Default Value:
  • ""

Methods

next2d.net.URLRequestHeader.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class URLRequestHeader]
Returns:
TypeDescription
string

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object URLRequestHeader]
Returns:
TypeDescription
string