Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
grip
v2.0.4
Grip
Application
Controllers
Exception
Context
Http
Context
WebSocket
Context
Socket
Exceptions
BadRequest
Base
Forbidden
Generic
InternalServerError
MethodNotAllowed
NotAcceptable
NotFound
PayloadTooLarge
RequestTimeout
TooManyRequests
Unauthorized
Extensions
Context
Number
Response
Output
String
Handlers
Log
Static
Helpers
FileDownload
Singleton
Macros
Dsl
Minuscule
ExceptionPage
Parsers
FileUpload
ParameterBox
Routers
Base
Http
Route
WebSocket
Support
LocaleFormat
MimeTypes
Number
String
Built with Crystal 1.10.0
2023-11-23 00:39:37 UTC
class
Grip::
Helpers::
FileDownload
Grip::Helpers::FileDownload
Reference
Object
Defined in:
grip/helpers/file_download.cr
Class Method Summary
.send_file
(context, path : String, mime_type : String | Nil =
nil
, gzip_enabled : Bool =
false
)
Class Method Detail
def self.
send_file
(context, path :
String
, mime_type :
String
| Nil =
nil
, gzip_enabled : Bool =
false
)
#
[
View source
]