asJson method

BuildRequest<T> asJson()

使用JSON格式发送(application/json)

Implementation

BuildRequest<T> asJson() {
  _bodyType = RequestBodyType.json;
  _options?.contentType = ContentTypes.json;
  return this;
}