HttpParams
An HTTP request/response body that represents serialized parameters,
per the MIME type application/x-www-form-urlencoded.
constructor
HttpParamsHttpParamshas
booleanReports whether the body includes one or more values for a given parameter.
stringThe parameter name.
booleanget
string | nullRetrieves the first value for a parameter.
stringThe parameter name.
string | nullgetAll
string[] | nullRetrieves all values for a parameter.
stringThe parameter name.
string[] | nullkeys
string[]Retrieves all the parameters for this body.
string[]append
HttpParamsAppends a new value to existing values for a parameter.
stringThe parameter name.
string | number | booleanThe new value to add.
HttpParamsappendAll
HttpParamsConstructs a new body with appended values for the given parameter name.
{ [param: string]: string | number | boolean | readonly (string | number | boolean)[]; }parameters and values
HttpParamsset
HttpParamsReplaces the value for a parameter.
stringThe parameter name.
string | number | booleanThe new value.
HttpParamsdelete
HttpParamsRemoves a given value or all values from a parameter.
stringThe parameter name.
string | number | boolean | undefinedThe value to remove, if provided.
HttpParamstoString
stringSerializes the body to an encoded string, where key-value pairs (separated by =) are
separated by &s.
stringDescription
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.