Browse Source

Update README.md

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

+ 7 - 0
README.md

@@ -216,3 +216,10 @@ func HTML(w http.ResponseWriter, r *http.Request, f template.FuncMap, d interfac
 func JSON(w http.ResponseWriter, r *http.Request, o interface{}) bool
 ```
 
+## utils/http/servauth
+
+Used for adding basic authentication for any HTTP handler
+
+```go
+func BasicAuth(handler http.Handler, username, password, realm string) http.Handler
+```