com.sksamuel

scruffy

package scruffy

Visibility
  1. Public
  2. All

Type Members

  1. trait CacheSupport extends AnyRef

  2. abstract class CacheType extends AnyRef

    Public - may be cached in public shared caches.

  3. class EntityWriter extends StrictLogging

    Writes out a response to a byte array taking into account the content type.

  4. case class FilterHolder(path: String, filter: HttpFilter) extends Product with Serializable

  5. class GroupExtractor extends AnyRef

  6. case class HttpEndpoint(method: HttpMethod, url: String, pipeline: Pipeline) extends Product with Serializable

  7. trait HttpFilter extends AnyRef

  8. trait HttpListener extends AnyRef

    A listener can register for callbacks at various times in the scruffy lifecycle, for example on startup, shutdown, and when endpoints are registered.

  9. trait HttpModule extends ResponseBuilder with ResponseImplicits with DefaultProcessors with Processors

    A trait that provides the entry point to the DSL.

  10. case class HttpRequest(uri: Uri, method: HttpMethod, entity: Array[Byte] = scala.Array.emptyByteArray, headers: List[Header] = immutable.this.Nil, response: HttpResponse = HttpResponse.ok, properties: Map[PropertyKey[Any], Any] = ..., context: ScruffyContext = ScruffyContext.apply()) extends Product with Serializable

  11. case class HttpResponse(status: Int, entity: Any = scala.Array.emptyByteArray, cookies: List[Cookie] = immutable.this.Nil, headers: List[Header] = immutable.this.Nil, properties: Map[PropertyKey[Any], Any] = ...) extends Product with Serializable

  12. class PathFilter extends HttpFilter

  13. case class Pipeline(f: (HttpRequest) ⇒ Future[HttpResponse], filters: List[HttpFilter]) extends Product with Serializable

  14. trait Processors extends AnyRef

  15. case class PropertyKey[+T](value: String) extends Product with Serializable

  16. case class Redirect(url: String) extends Product with Serializable

    Special type of response entity that is used to redirect requests internally.

  17. final case class RequestId(value: String) extends AnyVal with Product with Serializable

  18. trait RequestIdGenerator extends AnyRef

  19. trait ResponseBuilder extends AnyRef

  20. trait ResponseImplicits extends ResponseBuilder with Processors

  21. case class ScruffyContext(endpoints: List[HttpEndpoint], listeners: List[HttpListener], filters: List[HttpFilter], errorHandler: ErrorHandler, notFoundHandler: (HttpRequest) ⇒ HttpResponse, sessionManager: Option[SessionManager], sessionConfig: SessionConfig, requestIdGenerator: Option[RequestIdGenerator], scalper: Scalper) extends StrictLogging with Product with Serializable

    Contains the configuration etc for a scruffy managed set of endpoints.

  22. trait SimpleHttpFilter extends HttpFilter

  23. trait SimpleHttpRequestFilter extends SimpleHttpFilter

  24. trait SimpleHttpResponseFilter extends SimpleHttpFilter

  25. case class StaticConfig(welcomePage: String = "index.html") extends Product with Serializable

  26. class StaticFileEndpoint extends HttpModule

Value Members

  1. object CacheType

  2. object ContentTypeInferrer

  3. object ErrorHandling

  4. object HttpResponse extends ResponseBuilder with Serializable

  5. object NotFoundHandling

  6. object ParamMapper

    Instantiates and populates a case class from the query parameters in a

  7. object Processors extends Processors

  8. object PropertyKeys

  9. object RequestIdGenerator

  10. object ResponseBuilder extends ResponseBuilder

  11. object ResponseImplicits extends ResponseImplicits

  12. object ScruffyContext extends Serializable

  13. object StaticFileEndpoint

  14. object UserAgents

  15. package cache

  16. package filters

  17. package internal

  18. package processors

  19. package session

  20. package util

Ungrouped