rapture.http

HttpRequest

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpRequest()

Abstract Value Members

  1. abstract def basePathString: String

    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

    Body PUT or POSTed

  3. abstract def contentLength: Int

    The length of incoming data, e.

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

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

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

    Request headers.

  6. abstract def https: Boolean

    If true, indicates that this is a secure connection.

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

    Array of all query and POST parameters in order.

  8. abstract def queryString: String

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

  9. abstract def remainderString: String

    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

    The HTTP method, e.

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

  11. abstract def scriptName: String

    The virtual path, i.

    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

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

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

  13. abstract def serverPort: Int

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

  14. abstract def servicePathString: String

    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

    The requested URL, without any query parameters, e.

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

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(k: String): String

    Gets a named request param (which must exist).

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

    Gets the value of a cookie from the request

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

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

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

    Checks for the existence of a named request param.

  14. def finalize(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

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

    Gets a named request param which may not exist.

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

    Gets a named request param or returns the default.

  24. lazy val path: RootedPath

    The path of the script

  25. lazy val remainder: List[String]

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

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

  28. var streamRead: Boolean

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

    Definition Classes
    AnyRef
  30. val time: Long

    The time the request arrived

  31. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped