mirror of
https://github.com/kataras/iris.git
synced 2026-01-17 17:05:59 +00:00
add Context.SendFileWithRate, ServeFileWithRate and ServeContentWithRate
as requested at: https://github.com/kataras/iris/issues/1493 Former-commit-id: 7783fde04b4247056e6309e7ec1df27f027dc655
This commit is contained in:
11
iris.go
11
iris.go
@@ -591,6 +591,17 @@ const (
|
||||
ReferrerGoogleAdwords = context.ReferrerGoogleAdwords
|
||||
)
|
||||
|
||||
// Byte unit helpers.
|
||||
const (
|
||||
B = 1 << (10 * iota)
|
||||
KB
|
||||
MB
|
||||
GB
|
||||
TB
|
||||
PB
|
||||
EB
|
||||
)
|
||||
|
||||
// ConfigureHost accepts one or more `host#Configuration`, these configurators functions
|
||||
// can access the host created by `app.Run`,
|
||||
// they're being executed when application is ready to being served to the public.
|
||||
|
||||
Reference in New Issue
Block a user