HttpUrlEncodingCodec

class

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)

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/http/HttpUrlEncodingCodec