{ "id": "api/common/http/HttpParamsOptions", "title": "HttpParamsOptions", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpParamsOptionslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Options used to construct an HttpParams instance.

\n\n \n
\n \n \n
\n\ninterface HttpParamsOptions {\n fromString?: string\n fromObject?: {...}\n encoder?: HttpParameterCodec\n}\n\n\n \n \n\n\n \n \n\n
\n\n \n\n \n \n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n fromString?: string\n \n \n

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

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

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

\n\n \n
\n \n encoder?: HttpParameterCodec\n \n \n

Encoding codec used to parse and serialize the parameters.

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }