Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Add HTTP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Apr 2, 2020
1 parent c857b11 commit fbca067
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/Squid/Core/Request/HttpMethod.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ public enum HttpMethod {
/// DELETE method.
case delete

/// PATCH method.
case patch

/// HEAD method.
case head

internal var name: String {
switch self {
case .get: return "GET"
case .post: return "POST"
case .put: return "PUT"
case .delete: return "DELETE"
case .head: return "HEAD"
case .patch: return "PATCH"
}
}

Expand Down

0 comments on commit fbca067

Please sign in to comment.