|
@@ -21,6 +21,7 @@ import (
|
|
// func ClientIPs(r *http.Request) []string
|
|
// func ClientIPs(r *http.Request) []string
|
|
// func HandleAppStatus() http.Handler
|
|
// func HandleAppStatus() http.Handler
|
|
// func HandleFile(data, contentType string) http.Handler
|
|
// func HandleFile(data, contentType string) http.Handler
|
|
|
|
+// func HandleImageGif(data string) http.Handler
|
|
// func HandleImageJpeg(data string) http.Handler
|
|
// func HandleImageJpeg(data string) http.Handler
|
|
// func HandleImagePng(data string) http.Handler
|
|
// func HandleImagePng(data string) http.Handler
|
|
// func HandleTextCss(data string) http.Handler
|
|
// func HandleTextCss(data string) http.Handler
|
|
@@ -133,6 +134,10 @@ func HandleFile(data, contentType string) http.Handler {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func HandleImageGif(data string) http.Handler {
|
|
|
|
+ return HandleFile(data, "image/gif")
|
|
|
|
+}
|
|
|
|
+
|
|
func HandleImageJpeg(data string) http.Handler {
|
|
func HandleImageJpeg(data string) http.Handler {
|
|
return HandleFile(data, "image/jpeg")
|
|
return HandleFile(data, "image/jpeg")
|
|
}
|
|
}
|