MCPcopy Index your code
hub / github.com/angular/angular / set

Method set

packages/common/http/src/params.ts:275–277  ·  view source on GitHub ↗

* Replaces the value for a parameter. * @param param The parameter name. * @param value The new value. * @return A new body with the new value.

(param: string, value: string | number | boolean)

Source from the content-addressed store, hash-verified

273 * @return A new body with the new value.
274 */
275 set(param: string, value: string | number | boolean): HttpParams {
276 return this.clone({param, value, op: 's'});
277 }
278
279 /**
280 * Removes a given value or all values from a parameter.

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected