RMHttp v1.6.0 Release Notes

Release Date: 2020-02-10 // almost 2 years ago
  • let name1 = RMParams(key: "names[]", value: "roger")let name2 = RMParams(key: "names[]", value: "molas")let booleanType = RMParams(key: "boolean", value: true)let number = RMParams(key: "number", value: 100)let floatNumber = RMParams(key: "float", value: 1.0)let params = [name1, name2, booleanType, number, floatNumber]let urlString = "https://httpbin.org/post"request = RMRequest(urlString, .GET(.URLEncoding), params, nil)return request
    

    Form-data Add file

    let request = RMRequest(url: URL(string: urlString)!) request.addForm(field: "file", file: imgData, fileName: "image.jpeg", mimeType: "image/jpeg") request.setHttp(method: .POST(.FomDataEncoding))return request
    

    ⚡️ Updates Added:
    #6 #5