asUrlEncoded method

BuildRequest<T> asUrlEncoded()

使用URL编码格式发送(application/x-www-form-urlencoded)

Implementation

BuildRequest<T> asUrlEncoded() {
  _bodyType = RequestBodyType.urlEncoded;
  _options?.contentType = ContentTypes.formUrlEncoded;
  return this;
}