Skip to content

Commit

Permalink
feat(HttpRequestUtils) : HTTP 요청에 대한 Enum 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mjj111 committed May 14, 2024
1 parent 73c44c0 commit 9381ff5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/model/HttpRequestMethod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package model;

public enum HttpRequestMethod {
POST("POST"), GET("GET"), PATCH("PATCH"), DELETE("DELETE");

private final String value;

HttpRequestMethod(final String value) {
this.value = value;
}

public boolean equals(final String op) {
return op.equals(value);
}
}

0 comments on commit 9381ff5

Please sign in to comment.