神岛 API 文档 - ArenaPro版
    Preparing search index...

    用于执行 HTTP 请求。

    Used to perform HTTP requests.

    Index

    Methods

    Methods

    • Parameters

      • url: string
      • Optionaloptions: RequestInit

      Returns Promise<Response>

      使用给定的 URL 和选项来发起 HTTP 请求。

      Initiates an HTTP request using the given URL and options.

      请求的 URL 地址。

      The URL address for the request.

      可选的请求配置项,包括请求方法、头部信息等。

      Optional request configuration items, including request method, header information, etc.

      返回一个 Promise,该 Promise 解析为服务器的响应。

      Returns a Promise that resolves to the server's response.