填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

HttpParamsOptions

用于构造 HttpParams 实例的选项。

Options used to construct an HttpParams instance.

      
      interface HttpParamsOptions {
  fromString?: string
  fromObject?: {...}
  encoder?: HttpParameterCodec
}
    

属性

属性说明
fromString?: string

HTTP 参数的 URL 查询字符串格式表示法。与 fromObject 互斥。

String representation of the HTTP parameters in URL-query-string format. Mutually exclusive with fromObject.

fromObject?: { [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>; }

HTTP 参数的对象映射表。与 fromString 互斥。

Object map of the HTTP parameters. Mutually exclusive with fromString.

encoder?: HttpParameterCodec

用来解析和序列化参数的编解码器。

Encoding codec used to parse and serialize the parameters.