Package

com.markfeeney.circlet

middleware

Permalink

package middleware

Visibility
  1. Public
  2. All

Type Members

  1. case class Cookie(value: String, expires: Option[DateTime] = None, maxAge: Option[Duration] = None, domain: Option[String] = None, path: Option[String] = None, secure: Boolean = false, httpOnly: Boolean = false) extends Product with Serializable

    Permalink

    Represents a Cookie value to be used in the Set-Cookie response header.

    Represents a Cookie value to be used in the Set-Cookie response header. https://tools.ietf.org/html/rfc6265

    value

    Value of the cookie

    expires

    Date at which cookie expires

    maxAge

    Interval of time (relative to now) after which the cookie expires

    domain

    Domain on which cookie is valid

    path

    Path under which the cookies is valid

    secure

    Tell UA to only send cookie over secure channel

    httpOnly

    Tell UA to prevent scripts from seeing cookie

  2. final case class FileParam(filename: String, contentType: String, tempFile: File, size: Long) extends Param with Product with Serializable

    Permalink

    A parameter resulting from a multipart file upload.

    A parameter resulting from a multipart file upload.

    filename

    The name of the uploaded file

    contentType

    Content type of uploaded file

    tempFile

    The uploaded file on disk (temporary file)

    size

    Size of uploaded file

  3. sealed trait Param extends AnyRef

    Permalink

    Represents a parameter parsed from a Request.

    Represents a parameter parsed from a Request. e.g. something from the query string, form body, or multipart form body.

  4. case class Params(queryParams: Map[String, Param] = Map.empty, formParams: Map[String, Param] = Map.empty, multipartParams: Map[String, Param] = Map.empty) extends Product with Serializable

    Permalink

    Parameters parsed from different parts of a Request.

    Parameters parsed from different parts of a Request.

    queryParams

    Params from the query string

    formParams

    Params from a form post (application/x-www-form-urlencoded)

    multipartParams

    Params from a multipart form post (multipart/form-data)

  5. final case class StrParam(value: Vector[String]) extends Param with Product with Serializable

    Permalink

Value Members

  1. object ContentType

    Permalink

    Middleware for automatically adding a content type to response objects based on the request URI.

    Middleware for automatically adding a content type to response objects based on the request URI. e.g. request http://example.com/foo.mp4, adds Content-Type: video/mp4 to response.

    Port of https://github.com/ring-clojure/ring/blob/01de0cf1bbab402905bc65789bebb9a7dc36d974/ring-core/src/ring/middleware/content_type.clj

  2. object Cookie extends Serializable

    Permalink
  3. object Cookies

    Permalink
  4. object Head

    Permalink

    Middleware to make HEAD request handling easier.

    Middleware to make HEAD request handling easier. Turns HEAD requests into GET requests internally and throws out the response body before returning.

    Port of https://github.com/ring-clojure/ring/blob/01de0cf1bbab402905bc65789bebb9a7dc36d974/ring-core/src/ring/middleware/head.clj

  5. object MultipartParams

    Permalink

    Provides middleware for parsing params from multipart/form-data request bodies.

    Provides middleware for parsing params from multipart/form-data request bodies. This is normally used for accepting file uploads from web browsers.

  6. object Param

    Permalink
  7. object Params extends Serializable

    Permalink

Ungrouped