I hereby claim:
- I am onurzdg on github.
- I am onuro (https://keybase.io/onuro) on keybase.
- I have a public key whose fingerprint is 9F0A 2204 6271 9A40 D373 2072 C782 E6F7 E1AC 48F9
To claim this, I am signing this object:
def uploadFile: Endpoint[String] = | |
post("pet" :: fileUpload("file")) { (upload: FileUpload) => | |
fileReader(upload){ reader => | |
reader.read(21).map(_ => Ok("zz")) | |
} | |
} | |
private def fileReader[A](uploaded: FileUpload)(fn: Reader => Future[Output[A]]): Future[Output[A]] = uploaded match { | |
case u: InMemoryFileUpload => fn(Reader.fromBuf(u.content)) | |
case u: OnDiskFileUpload => fn(Reader.fromFile(u.content)) |
I hereby claim:
To claim this, I am signing this object: