You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Makes a PATCH request via HTTP, Encodes the body and Decodes the response
165
+
/// - Parameters:
166
+
/// - decodableResponse: Decodable - An object that represents the response body
167
+
/// - urlString: URL domain + path as a string: `"abc.com/some/path"`
168
+
/// - body: Encodable?: The encodable object that represents body data to send with a request
169
+
/// - validator: `(Int) -> Bool` - A function to validate the response code of the request. By default, makeRequest() will fail if the status code does not fall within the 200 - 299 range. To override this, pass in a function that compares the status code and returns a boolean. True == success, False == failure. Upon failure an error will be thrown that contains the HTTPURLResponse for inspection.
170
+
///
171
+
/// - Returns: AnyPubliser<Data, Error>
172
+
///
173
+
/// -- Validation
174
+
///
175
+
/// By default the validation checks for a 200-299 status code and fails if the code is out of bounds
/// Makes a PUT request via HTTP, Encodes the body and Decodes the response
192
+
/// - Parameters:
193
+
/// - decodableResponse: Decodable - An object that represents the response body
194
+
/// - urlString: URL domain + path as a string: `"abc.com/some/path"`
195
+
/// - body: Encodable?: The encodable object that represents body data to send with a request
196
+
/// - validator: `(Int) -> Bool` - A function to validate the response code of the request. By default, makeRequest() will fail if the status code does not fall within the 200 - 299 range. To override this, pass in a function that compares the status code and returns a boolean. True == success, False == failure. Upon failure an error will be thrown that contains the HTTPURLResponse for inspection.
197
+
///
198
+
/// - Returns: AnyPubliser<Data, Error>
199
+
///
200
+
/// -- Validation
201
+
///
202
+
/// By default the validation checks for a 200-299 status code and fails if the code is out of bounds
/// Makes a DELETE request via HTTP, Encodes the body and Decodes the response
218
+
/// - Parameters:
219
+
/// - decodableResponse: Decodable - An object that represents the response body
220
+
/// - urlString: URL domain + path as a string: `"abc.com/some/path"`
221
+
/// - body: Encodable?: The encodable object that represents body data to send with a request
222
+
/// - validator: `(Int) -> Bool` - A function to validate the response code of the request. By default, makeRequest() will fail if the status code does not fall within the 200 - 299 range. To override this, pass in a function that compares the status code and returns a boolean. True == success, False == failure. Upon failure an error will be thrown that contains the HTTPURLResponse for inspection.
223
+
///
224
+
/// - Returns: AnyPubliser<Data, Error>
225
+
///
226
+
/// -- Validation
227
+
///
228
+
/// By default the validation checks for a 200-299 status code and fails if the code is out of bounds
0 commit comments