<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## RequestOptions Creates a request options object to be optionally provided when instantiating a `Request`. This class is based on the RequestInit description in the Fetch Spec. All values are null by default. Typical defaults can be found in the `BaseRequestOptions` class, which sub-classes RequestOptions. ```typescript import {RequestOptions, Request, RequestMethod} from '@angular/http'; var options = new RequestOptions({ method: RequestMethod.Post, url: 'https://google.com' }); var req = new Request(options); console.log('req.method:', RequestMethod[req.method]); // Post console.log('options.url:', options.url); // https://google.com ``` ### 類定義 ```typescript class Request extends Body { constructor(requestOptions: RequestArgs) method : RequestMethod headers : Headers url : string withCredentials : boolean responseType : ResponseContentType detectContentType() : ContentType detectContentTypeFromBody() : ContentType getBody() : any } ``` ### 屬性 - method : `RequestMethod` | `string` Http method with which to execute a `Request`. Acceptable methods are defined in the `RequestMethod` enum. - headers : `Headers` - body : `any` Body to be used when creating a `Request` - url : `string` Url with which to perform a `Request` - search : `URLSearchParams` Search parameters to be included in a `Request` - withCredentials : `boolean` Enable use credentials - responseType : `ResponseContentType` Buffer to store the response - merge(options?: `RequestOptionsArgs`) : `RequestOptions` Creates a copy of the RequestOptions instance, using the optional input as values to override existing values. This method will not change the values of the instance on which it is being called. Note that headers and search will override existing values completely if present in the options object. If these values should be merged, it should be done prior to calling merge on the RequestOptions instance. ```typescript import {RequestOptions, Request, RequestMethod} from '@angular/http'; var options = new RequestOptions({ method: RequestMethod.Post }); var req = new Request(options.merge({ url: 'https://google.com' })); console.log('req.method:', RequestMethod[req.method]); // Post console.log('options.url:', options.url); // null console.log('req.url:', req.url); // https://google.com ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看