RMHttp v1.5.0 Release Notes

Release Date: 2020-01-13 // over 2 years ago
  • Add form-data fields from params

    RMRequest(urlString, method: .POST(.FomDataEncoding), parameters: params, hearders: nil)
    

    Custom form data request

     let request = RMRequest(url: URL(string: urlString)!) request.setHttp(method: .POST(.FomDataEncoding)) request.setFormData(fields: params)
    

    or

     request.setHttpBody(data: customDataBody)