Class: HTTPStatusEvent

HTTPStatusEvent

ネットワーク要求が HTTP ステータスコードを返すと、アプリケーションによって HTTPStatusEvent オブジェクトが送出されます。

The application dispatches HTTPStatusEvent objects when a network request returns an HTTP status code.

new next2d.events.HTTPStatusEvent (type, bubbles, cancelable, status)

NameTypeDefaultDescription
typestring
bubblesbooleanfalseoptional
cancelablebooleanfalseoptional
statusnumber0optional

Extends

  • Event

Members

next2d.events.HTTPStatusEvent.HTTP_STATUS staticconstant

HTTPStatusEvent.HTTP_STATUS 定数は、
httpStatus イベントオブジェクトの type プロパティの値を定義します。
The HTTPStatusEvent.HTTP_STATUS constant defines the value
of the type property of a httpStatus event object.

Default Value:
  • httpStatus

next2d.events.HTTPStatusEvent.namespace string staticconstant

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

Default Value:
  • next2d.events.HTTPStatusEvent

namespace string constant

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

Default Value:
  • next2d.events.HTTPStatusEvent

responseHeaders readonly

返された応答ヘッダー(URLRequestHeader オブジェクトの配列)です。
The response headers that the response returned,
as an array of URLRequestHeader objects.

responseURL readonly

応答の返送元の URL です。
The URL that the response was returned from.

status readonly

サーバーから返された HTTP ステータスコードです。
The HTTP status code returned by the server.

Methods

next2d.events.HTTPStatusEvent.toString ()string static

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

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

toString ()string

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

Returns:
TypeDescription
string