forked from spray/spray
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mathias edited this page Mar 25, 2011
·
43 revisions
Spray is a lightweight Scala framework for building RESTful web services on top of Akka actors and Akka Mist. It sports the following main features:
- Completely asynchronous, non-blocking, actor-based request handling
- Powerful, flexible and extensible internal Scala DSL for declaratively defining your web service behavior
- Immutable model of the HTTP protocol, decoupled from the underlying servlet container
- Full testability of your REST services, without the need to fire up containers or actors
- Basic content negotiation
import cc.spray._
trait HelloServiceBuilder extends ServiceBuilder {
val helloService = {
path("hello") {
get { _.complete(<h1>Say hello to Spray</h1>) } ~
put { _.complete("received PUT request for resource '/hello'") }
}
}
}- ...
- Introduction
...
- Home
- Requirements
- spray-server
- ... Getting Started
- ... Key Concepts
- ...... Request Lifecycle
- ...... Routes
- ...... Directives
- ...... Composing Directives
- ...... Rejections
- ...... Marshalling and Unmarshalling
- ... Predefined Directives
- ...... Method Filters
- ...... Path Filters
- ...... Parameter Filters
- ...... Form-Field Filters
- ...... Marshalling/Unmarshalling
- ...... Caching
- ...... Detach
- ...... Encoding/Decoding
- ...... Authentication/Authorization
- ...... File and Resource Directives
- ...... Misc Directives
- ... Advanced Topics
- ...... Case Class Extraction
- ...... Custom Directives
- ...... Custom Media Types
- ...... Custom Error Responses
- ... Configuration
- ... Testing
- ... Example Projects
- spray-client
- Patch Policy
- Credits
- Sponsors