Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
a48e96ce0d
1 changed files with 22 additions and 0 deletions
  1. 22 0
      README.md

+ 22 - 0
README.md

@@ -133,3 +133,25 @@ type CurlGetOpts struct {
 func CurlDownload(ctx context.Context, url string, opts *CurlGetOpts, fileName string, filePath ...string) error
 func CurlGet(ctx context.Context, url string, opts *CurlGetOpts) ([]byte, error)
 ```
+
+```go
+func ClientIP(r *http.Request) string
+func ClientIPs(r *http.Request) []string
+func HandleAppStatus() http.Handler
+func HandleFile(data, contentType string) http.Handler
+func HandleImageJpeg(data string) http.Handler
+func HandleImagePng(data string) http.Handler
+func HandleTextCss(data string) http.Handler
+func HandleTextJavaScript(data string) http.Handler
+func HandleTextPlain(data string) http.Handler
+func HandleTextXml(data string) http.Handler
+func IntToStr(value int64) string
+func Md5Hash(str []byte) string
+func MinifyHtmlCode(str string) string
+func MinifyHtmlJsCode(str string) string
+func RespondAsBadRequest(w http.ResponseWriter, r *http.Request, err error)
+func RespondAsInternalServerError(w http.ResponseWriter, r *http.Request)
+func RespondAsMethodNotAllowed(w http.ResponseWriter, r *http.Request)
+func SessionStart(w http.ResponseWriter, r *http.Request) (*session.Session, error)
+func SetLanguageCookie(w http.ResponseWriter, r *http.Request) error
+```