Skip to content

Commit

Permalink
⚡️ Completed the Header enum
Browse files Browse the repository at this point in the history
  • Loading branch information
vegidio committed May 19, 2024
1 parent 64aa711 commit aafe8ac
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions library/src/commonMain/kotlin/io/vinicius/klopik/Header.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package io.vinicius.klopik

/**
* Enum class representing HTTP header.
*
* @property value The string representation of the HTTP header.
*/
enum class Header(val value: String) {
AIM("A-IM"),
Accept("Accept"),
AcceptCharset("Accept-Charset"),
AcceptDatetime("Accept-Datetime"),
AcceptEncoding("Accept-Encoding"),
AcceptLanguage("Accept-Language"),
AccessControlRequestMethod("Access-Control-Request-Method"),
AccessControlRequestHeaders("Access-Control-Request-Headers"),
Authorization("Authorization"),
CacheControl("Cache-Control"),
Connection("Connection"),
ContentEncoding("Content-Encoding"),
ContentLength("Content-Length"),
ContentType("Content-Type"),
Cookie("Cookie"),
Date("Date"),
Expect("Expect"),
Forwarded("Forwarded"),
From("From"),
Host("Host"),
IfMatch("If-Match"),
IfModifiedSince("If-Modified-Since"),
IfNoneMatch("If-None-Match"),
IfRange("If-Range"),
IfUnmodifiedSince("If-Unmodified-Since"),
MaxForwards("Max-Forwards"),
Origin("Origin"),
Pragma("Pragma"),
Prefer("Prefer"),
ProxyAuthorization("Proxy-Authorization"),
Range("Range"),
Referer("Referer"),
TE("TE"),
Trailer("Trailer"),
TransferEncoding("Transfer-Encoding"),
UserAgent("User-Agent"),
Upgrade("Upgrade"),
Via("Via"),
}

0 comments on commit aafe8ac

Please sign in to comment.