Class: URLRequest

URLRequest

URLRequest クラスは、すべての情報を 1 つの HTTP 要求にキャプチャします

The URLRequest class captures all of the information in a single HTTP request.

new next2d.net.URLRequest (url)

NameTypeDefaultDescription
urlstring""optional

Members

next2d.net.URLRequest.namespace staticconstant

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

Default Value:
  • next2d.net.URLRequest

contentType string

data プロパティのコンテンツの MIME コンテンツタイプです。
The MIME content type of the content in the the data property.

Default Value:
  • application/json

data string | object

URL リクエストで送信されるデータを含むオブジェクトです。
An object containing data to be transmitted with the URL request.

headers Map readonly

リクエストされる Header Object
Header Object to be requested.

method string

HTTP フォーム送信メソッドを制御します。
Controls the HTTP form submission method.

Default Value:
  • URLRequestMethod.GET

namespace constant

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

Default Value:
  • next2d.net.URLRequest

requestHeaders Array.<URLRequestHeader>

HTTP リクエストヘッダーの配列が HTTP リクエストに追加されます。
The array of HTTP request headers to be appended to the HTTP request.

responseDataFormat string

レスポンスのデータフォーマットを指定します。
Specifies the data format of the response.

Default Value:
  • URLLoaderDataFormat.JSON

url string

リクエストされる URL です。
The URL to be requested.

userAgent string readonly

HTTP 要求で使用されるユーザーエージェントストリングを指定します。
Specifies the user-agent string to be used in the HTTP request.

withCredentials boolean readonly

HTTP 要求で使用されるユーザーエージェントストリングを指定します。
Specifies the user-agent string to be used in the HTTP request.

Default Value:
  • false

Methods

next2d.net.URLRequest.toString ()string static

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

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

toString ()string

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

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