Class/Object

rapture.http

HttpRequest

Related Docs: object HttpRequest | package http

Permalink

abstract class HttpRequest extends AnyRef

Represents an HTTP request.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpRequest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpRequest()

    Permalink

Abstract Value Members

  1. abstract def basePathString: String

    Permalink

    The application base path used in this request, relative to the domain root.

    The application base path used in this request, relative to the domain root. Conventionally has a leading slash only, unless it's empty.

  2. abstract def body: String

    Permalink

    Body PUT or POSTed

  3. abstract def contentLength: Int

    Permalink

    The length of incoming data, e.g.

    The length of incoming data, e.g. for POST or PUT.

  4. abstract def fileUploads: Map[String, Array[Byte]]

    Permalink
  5. abstract def headers: Map[String, Seq[String]]

    Permalink

    Request headers.

  6. abstract def https: Boolean

    Permalink

    If true, indicates that this is a secure connection.

  7. abstract def parameters: Map[String, String]

    Permalink

    Array of all query and POST parameters in order.

  8. abstract def queryString: String

    Permalink

    The part of the URI following the ?, or the empty string.

  9. abstract def remainderString: String

    Permalink

    The remainder of the URL following the service path, without any query parameters.

    The remainder of the URL following the service path, without any query parameters. Conventionally has a leading slash only, unless it's empty.

  10. abstract def requestMethod: Method

    Permalink

    The HTTP method, e.g.

    The HTTP method, e.g. GET or POST, etc.

  11. abstract def scriptName: String

    Permalink

    The virtual path, i.e.

    The virtual path, i.e. the part of the URL following the hostname, not including any query parameters. Always starts with a slash.

  12. abstract def serverName: String

    Permalink

    The name the web server thinks this (virtual) server is called, e.g.

    The name the web server thinks this (virtual) server is called, e.g. www.example.com.

  13. abstract def serverPort: Int

    Permalink

    The port the web server says the request was made to.

  14. abstract def servicePathString: String

    Permalink

    The service path requested, relative to the base path.

    The service path requested, relative to the base path. Conventionally has a leading slash only, unless it's empty.

  15. abstract def url: String

    Permalink

    The requested URL, without any query parameters, e.g.

    The requested URL, without any query parameters, e.g. http://www.example.com:8080/basePath/servicePath/remainder.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(k: String): String

    Permalink

    Gets a named request param (which must exist).

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val completionTasks: ListBuffer[() ⇒ Unit]

    Permalink
  8. def cookie(c: Symbol): Option[String]

    Permalink

    Gets the value of a cookie from the request

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def exists(k: Symbol): Boolean

    Permalink

    Checks for the existence of a named request param.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def onComplete(block: ⇒ Unit): ListBuffer[() ⇒ Unit]

    Permalink
  20. def param(k: Symbol): Option[String]

    Permalink

    Gets a named request param which may not exist.

  21. def param(k: Symbol, default: String): String

    Permalink

    Gets a named request param or returns the default.

  22. lazy val path: SimplePath

    Permalink

    The path of the script

  23. lazy val remainder: List[String]

    Permalink
  24. val responseCookies: ListBuffer[(String, String, String, String, Option[Long], Boolean)]

    Permalink
  25. def setCookie(name: Symbol, value: String, domain: String = serverName, path: SimplePath = ^, expiry: Option[DateTime] = None, secure: Boolean = false): ListBuffer[(String, String, String, String, Option[Long], Boolean)]

    Permalink
  26. var streamRead: Boolean

    Permalink
    Attributes
    protected
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val time: Long

    Permalink

    The time the request arrived

  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped