code: function RequestOptions(opts) {
          if (opts === void 0) { opts = {}; }
          var method = opts.method, headers = opts.headers, body = opts.body, url = opts.url, search = opts.search, params = opts.params, withCredentials = opts.withCredentials, responseType = opts.responseType;
          this.method = method != null ? normalizeMethodName(method) : null;
          this.headers = headers != null ? headers : null;
          this.body = body != null ? body : null;
          this.url = url != null ? url : null;
          this.params = this._mergeSearchParams(params || search);
          this.withCredentials = withCredentials != null ? withCredentials : null;
          this.responseType = responseType != null ? responseType : null;
      }
docs: TODO(Dzmitry): remove search when this.search is removed