Skip to content

Commit c49bdec

Browse files
Lazar SidorLazar Sidor
authored andcommitted
Added support for delete tasks
1 parent c85eb7e commit c49bdec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

iosplusNetworking/Sources/iosplusNetworking/HttpClient.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ public class HttpClient {
136136
}
137137
}
138138

139+
if httpMethod == .delete {
140+
invokeDeleteDataTask(request as URLRequest) { response, responseData, responseError, errorCode in
141+
completion(response, responseError, errorCode)
142+
}
143+
return
144+
}
145+
139146
invokeDataTask(request as URLRequest,
140147
successCompletion: { _, data in
141148
if data == nil {

0 commit comments

Comments
 (0)