FormUrlEncodedConverter class

A Converter implementation that converts only Requests having a Map as their body.

This Converter also adds the content-type: application/x-www-form-urlencoded header to each request, but only if the content-type header is not set in the original request.

Implemented types
Annotations
  • @immutable

Constructors

FormUrlEncodedConverter()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertError<BodyType, InnerType>(Response response) FutureOr<Response>
Converts the received Response to a Response which has a body with the HTTP representation of the original body.
override
convertRequest(Request request) Request
Converts the received Request to a Request which has a body with the HTTP representation of the original body.
override
convertResponse<BodyType, InnerType>(Response response) Response<BodyType>
Converts the received Response to a Response which has a body of the type BodyType.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

requestFactory(Request request) Request