Skip to content

scalajs-io/oppressor

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Oppressor API for Scala.js

oppressor - streaming http compression response negotiator.

Description

streaming http compression response negotiator

Build Dependencies

Build/publish the SDK locally

 $ sbt clean publish-local

Running the tests

Before running the tests the first time, you must ensure the npm packages are installed:

$ npm install

Then you can run the tests:

$ sbt test

Examples

import io.scalajs.nodejs.fs.Fs
import io.scalajs.nodejs.http._
import io.scalajs.npm.oppressor._

val server = Http.createServer((req: ClientRequest, res: ServerResponse) => {
Fs.createReadStream("./src/test/resources/data.txt")
  .pipe(Oppressor(req))
  .pipe(res)
})
server.listen(8000)

Artifacts and Resolvers

To add the Oppressor binding to your project, add the following to your build.sbt:

libraryDependencies += "io.scalajs.npm" %%% "oppressor" % "0.5.0"

Optionally, you may add the Sonatype Repository resolver:

resolvers += Resolver.sonatypeRepo("releases") 

About

Streaming http compression response negotiator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages