HttpParamsOptions
用于构造 HttpParams
实例的选项。
Options used to construct an HttpParams
instance.
interface HttpParamsOptions {
fromString?: string
fromObject?: {...}
encoder?: HttpParameterCodec
}
属性
属性 | 说明 |
---|---|
fromString?: string | HTTP 参数的 URL 查询字符串格式表示法。与 String representation of the HTTP parameters in URL-query-string format. Mutually exclusive with |
fromObject?: { [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>; } | HTTP 参数的对象映射表。与 Object map of the HTTP parameters. Mutually exclusive with |
encoder?: HttpParameterCodec | 用来解析和序列化参数的编解码器。 Encoding codec used to parse and serialize the parameters. |