GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Setting URL parameters
  • HttpParams

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — HttpParams • Angular

API

    
      class HttpParams {}
    
    
@paramoptionsHttpParamsOptions
@returnsHttpParams

Reports whether the body includes one or more values for a given parameter.

@paramparamstring

The parameter name.

@returnsboolean

True if the parameter has one or more values, false if it has no value or is not present.

Retrieves the first value for a parameter.

@paramparamstring

The parameter name.

@returnsstring | null

The first value of the given parameter, or null if the parameter is not present.

Retrieves all values for a parameter.

@paramparamstring

The parameter name.

@returnsstring[] | null

All values in a string array, or null if the parameter not present.

Retrieves all the parameters for this body.

@returnsstring[]

The parameter names in a string array.

Appends a new value to existing values for a parameter.

@paramparamstring

The parameter name.

@paramvaluestring | number | boolean

The new value to add.

@returnsHttpParams

Constructs a new body with appended values for the given parameter name.

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

parameters and values

@returnsHttpParams

Replaces the value for a parameter.

@paramparamstring

The parameter name.

@paramvaluestring | number | boolean

The new value.

@returnsHttpParams

Removes a given value or all values from a parameter.

@paramparamstring

The parameter name.

@paramvaluestring | number | boolean | undefined

The value to remove, if provided.

@returnsHttpParams

Serializes the body to an encoded string, where key-value pairs (separated by =) are separated by &s.

@returnsstring

Description

An HTTP request/response body that represents serialized parameters, per the MIME type application/x-www-form-urlencoded.

This class is immutable; all mutation operations return a new instance.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.