Skip to content

clockfly/akka-http-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

akka-http-file-server

A file server example to download/upload large files with akka-http.

How to use

sbt "run-main akkahttp.TestApp"

Then Browser http://127.0.0.1:9112/

How it is implemented?

We create a akka-http DSL for this, so it is super easy to create a http file server:

 val route: Route ={path("upload"){uploadFile{fileMap => complete(ToResponseMarshallable(fileMap)) } } ~ path("download"){parameters("file"){file => downloadFile(file) } } 

Used by

Big data streaming engine over Akka:

Project Gearpump: https://github.com/gearpump/gearpump

About

akka-http file server for large file upload/download

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages