angular / 11.2.14 / api / common / http / httpparamsoptions.html /

HttpParamsOptions

interface

Options used to construct an HttpParams instance.

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

Properties

Property Description
fromString?: string

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

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

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

encoder?: HttpParameterCodec

Encoding codec used to parse and serialize the parameters.

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/http/HttpParamsOptions