This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

HttpUrlEncodingCodec

npm Package @angular/common
Module import { HttpUrlEncodingCodec } from '@angular/common/http';
Source common/http/src/params.ts

Overview

      
      class HttpUrlEncodingCodec implements HttpParameterCodec {
  encodeKey(k: string): string
  encodeValue(v: string): string
  decodeKey(k: string): string
  decodeValue(v: string)
}
    

Description

A HttpParameterCodec that uses encodeURIComponent and decodeURIComponent to serialize and parse URL parameter keys and values.

Members

      
      encodeKey(k: string): string
    

      
      encodeValue(v: string): string
    

      
      decodeKey(k: string): string
    

      
      decodeValue(v: string)