servicetalk-http-api/src/main/java/io/servicetalk/http/api/HttpSerializers.java
/**
     * Get a {@link HttpSerializerDeserializer} that can serialize a key-values {@link Map}s
     * with a {@link Charset} to urlencoded forms.
     *
     * @param charset The {@link Charset} to use for value encoding.
     * @return {@link HttpSerializerDeserializer} that could serialize key-value {@link Map}.
     * @see <a
     * href="https://url.spec.whatwg.org/#application/x-www-form-urlencoded">x-www-form-urlencoded specification</a>
     */
Get a  HttpSerializerDeserializer that can serialize a key-values  Maps
with a  Charset to urlencoded forms.

@param charset The  Charset to use for value encoding.
@return  HttpSerializerDeserializer that could serialize key-value  Map.
@see x-www-form-urlencoded specification
Get a HttpSerializerDeserializer that can serialize a key - values Maps with a Charset to urlencoded forms . @param charset The Charset to use for value encoding . @return HttpSerializerDeserializer that could serialize key - value Map . @see x - www - form - urlencoded specification
public static HttpSerializerDeserializer<Map<String, List<String>>> formUrlEncodedSerializer(Charset charset) {
        if (UTF_8.equals(charset)) {
            return FORM_ENCODED_UTF_8;
        }
        final CharSequence contentType = newAsciiString(APPLICATION_X_WWW_FORM_URLENCODED + "; charset=" +
                charset.name());
        return new DefaultHttpSerializerDeserializer<>(new FormUrlEncodedSerializer(charset),
                headers -> headers.set(CONTENT_TYPE, contentType),
                headers -> hasContentType(headers, APPLICATION_X_WWW_FORM_URLENCODED, charset));
    }
public static HttpSerializerDeserializer < Map < String , List < String > > > formUrlEncodedSerializer ( Charset charset ) { if ( UTF_8 . equals ( charset ) ) { return FORM_ENCODED_UTF_8 ; } final CharSequence contentType = newAsciiString ( APPLICATION_X_WWW_FORM_URLENCODED + "; charset=" + charset . name ( ) ) ; return new DefaultHttpSerializerDeserializer < > ( new FormUrlEncodedSerializer ( charset ) , headers -> headers . set ( CONTENT_TYPE , contentType ) , headers -> hasContentType ( headers , APPLICATION_X_WWW_FORM_URLENCODED , charset ) ) ; }
Get a {@link HttpSerializerDeserializer} that can serialize a key-values {@link Map}s
 with a {@link Charset} to urlencoded forms.
Get a { @link HttpSerializerDeserializer } that can serialize a key - values { @link Map } s with a { @link Charset } to urlencoded forms .