Imports github.com/astaxie/beego/session github.com/astaxie/beego/middleware github.com/astaxie/beego/utils Standard library imports crypto/hmac crypto/sha1 compress/gzip html/template bytes compress/flate encoding/base64 encoding/json encoding/xml errors fmt mime strconv strings time io io/ioutil net/http net/url path/filepath reflect