[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/http/HttpParamsOptions [Back]  [Original]

HttpParamsOptions Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common/http

HttpParamsOptions

interface
stable

Options used to construct an HttpParams instance.

Setting URL parametersCustom parameter encoding

On this page

    arrow_upward_alt Back to the top

    API

        
          interface HttpParamsOptions {  fromString?: string | undefined;  fromObject?: { [param: string]: string | number | boolean | readonly (string | number | boolean)[]; } | undefined;  encoder?: HttpParameterCodec | undefined;}
        
        

    fromString

    string | undefined

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

    fromObject

    { [param: string]: string | number | boolean | readonly (string | number | boolean)[]; } | undefined

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

    encoder

    HttpParameterCodec | undefined

    Encoding codec used to parse and serialize the parameters.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page