mirror of
https://github.com/labstack/echo.git
synced 2025-11-25 22:32:23 +02:00
@@ -25,12 +25,12 @@ func NewRequest(method, url string, body io.Reader) engine.Request {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Request) TLS() bool {
|
||||
func (r *Request) IsTLS() bool {
|
||||
return r.request.TLS != nil
|
||||
}
|
||||
|
||||
func (r *Request) Scheme() string {
|
||||
if r.TLS() {
|
||||
if r.IsTLS() {
|
||||
return "https"
|
||||
}
|
||||
return "http"
|
||||
@@ -60,6 +60,10 @@ func (r *Request) Header() engine.Header {
|
||||
// return r.request.ProtoMinor()
|
||||
// }
|
||||
|
||||
func (r *Request) ContentLength() int {
|
||||
return int(r.request.ContentLength)
|
||||
}
|
||||
|
||||
func (r *Request) UserAgent() string {
|
||||
return r.request.UserAgent()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user