Skip to content

Commit

Permalink
PATCH request type added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush Awasthi committed Feb 1, 2019
1 parent ea82226 commit 5cc5561
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion KiwiPods/Networking/NetworkModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public enum RequestType: String {
GET,
DELETE,
PUT,
HEAD
HEAD,
PATCH

public var httpMethod: HTTPMethod {
switch self {
Expand All @@ -28,6 +29,8 @@ public enum RequestType: String {
return HTTPMethod.put
case .HEAD:
return .head
case .PATCH:
return .patch
}
}
}
Expand Down

0 comments on commit 5cc5561

Please sign in to comment.