diff --git a/header/header.go b/header/header.go new file mode 100644 index 0000000..f42b7ec --- /dev/null +++ b/header/header.go @@ -0,0 +1,33 @@ +package header + +const ( + // Headers keys + KeyRequestID = "x-request-id" + KeyAuthorization = "authorization" + KeyUserAgent = "user-agent" + KeyContentType = "content-type" + KeyContentAccept = "accept" + KeyAcceptLanguage = "accept-language" + KeyCacheControl = "cache-control" + + // Content type.Specifying the payload in the request + ContentTypeJSON = "application/json" + ContentTypeXML = "application/xml" + ContentTypeForm = "application/x-www-form-urlencoded" + + // Accepting media. Specifying the types of requested media (in the response) + // See here: https://en.wikipedia.org/wiki/Content_negotiation + MediaTextPlain = "text/plain" + MediaTextHTML = "text/html" + MediaTextCSV = "text/csv" + MediaTextXML = "text/xml" + + MediaImageGIF = "image/gif" + MediaImageJPEG = "image/jpeg" + MediaImagePNG = "image/png" + MediaImageWEBP = "image/webp" + + // Cache control + CacheControlNoCache = "no-cache" + CacheControlNoStore = "no-store" +) diff --git a/main.go b/main.go deleted file mode 100644 index 2caede3..0000000 --- a/main.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/irdaislakhuafa/go-sdk/cryptography" -) - -func main() { - s, _ := cryptography.NewSHA256([]byte("password")).WithKey([]byte("key")).Build() - fmt.Printf("s: %v\n", s) -}