HttpParams
An HTTP request/response body that represents serialized parameters,
per the MIME type application/x-www-form-urlencoded
.
class HttpParams {}
has
boolean
Reports whether the body includes one or more values for a given parameter.
string
The parameter name.
boolean
get
string | null
Retrieves the first value for a parameter.
string
The parameter name.
string | null
getAll
string[] | null
Retrieves all values for a parameter.
string
The parameter name.
string[] | null
keys
string[]
Retrieves all the parameters for this body.
string[]
append
Appends a new value to existing values for a parameter.
string
The parameter name.
string | number | boolean
The new value to add.
HttpParams
appendAll
Constructs a new body with appended values for the given parameter name.
{ [param: string]: string | number | boolean | readonly (string | number | boolean)[]; }
parameters and values
HttpParams
set
Replaces the value for a parameter.
string
The parameter name.
string | number | boolean
The new value.
HttpParams
delete
Removes a given value or all values from a parameter.
string
The parameter name.
string | number | boolean | undefined
The value to remove, if provided.
HttpParams
toString
string
Serializes the body to an encoded string, where key-value pairs (separated by =
) are
separated by &
s.
string