[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/http/HttpUrlEncodingCodec [Back]  [Original]

HttpUrlEncodingCodec Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common/http

HttpUrlEncodingCodec

Class
stable

Provides encoding and decoding of URL parameter and query-string values.

On this page

    arrow_upward_alt Back to the top

    API

        
          class HttpUrlEncodingCodec implements HttpParameterCodec {  encodeKey(key: string): string;  encodeValue(value: string): string;  decodeKey(key: string): string;  decodeValue(value: string): string;}
        
        

    encodeKey

    string

    Encodes a key name for a URL parameter or query-string.

    @paramkeystring

    The key name.

    @returnsstring

    The encoded key name.

    encodeValue

    string

    Encodes the value of a URL parameter or query-string.

    @paramvaluestring

    The value.

    @returnsstring

    The encoded value.

    decodeKey

    string

    Decodes an encoded URL parameter or query-string key.

    @paramkeystring

    The encoded key name.

    @returnsstring

    The decoded key name.

    decodeValue

    string

    Decodes an encoded URL parameter or query-string value.

    @paramvaluestring

    The encoded value.

    @returnsstring

    The decoded value.

    Description

    Provides encoding and decoding of URL parameter and query-string values.

    Serializes and parses URL parameter keys and values to encode and decode them. If you pass URL query parameters without encoding, the query parameters can be misinterpreted at the receiving end.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page