I want to return image/PNG
as response to calling URL. How can I do it in Spray?
相关问题
- how to make scalatest work with spraytestkit and H
- In spray how to unmarshall plain/text?
- Spray-can NoClassDefFoundError
- Compile error when using a companion object of a c
- How can I simulate a POST request with a json body
相关文章
- How can I locate where an implicit comes from in S
- Extracting Raw JSON as String inside a Spray POST
- spray Marshaller for futures not in implicit scope
- Query parameters for GET requests using Akka HTTP
- Scala: Receiving Server-Sent-Events
- How can I parse out get request parameters in spra
- How do I automatically add slash to end of a url i
- could not find implicit value for parameter marsha
This may help:
See also, HttpMessage, HttpEntity, HttpData and MediaTypes. You can do same for
HttpRequest
as well. You can useArray[Byte]
orByteString
instead ofFile
. Checked for Spray 1.3.x.