trait HttpRequest extends HttpMessage with MessageBuilder[HttpRequest]
- Alphabetic
- By Inheritance
- HttpRequest
- MessageBuilder
- HttpMessage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type LineType = RequestLine
Type of start line used in message
Type of start line used in message
- Definition Classes
- HttpRequest → HttpMessage
Abstract Value Members
- abstract def addHeaders(headers: Header*): HttpRequest
Creates message with additional headers.
Creates message with additional headers.
- headers
additional message headers
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def attributes: Map[String, Any]
Gets message attributes.
Gets message attributes.
Attributes are arbitrary values associated with message and are not part of transmitted message.
- Definition Classes
- HttpMessage
- abstract def body: Entity
Gets message body.
Gets message body.
- Definition Classes
- HttpMessage
- abstract def headers: Seq[Header]
Gets message headers.
Gets message headers.
- Definition Classes
- HttpMessage
- abstract def path: String
Gets target path.
- abstract def query: QueryString
Gets query string.
- abstract def removeAttribute(name: String): HttpRequest
Creates message excluding attribute with given name.
Creates message excluding attribute with given name.
- name
attribute name
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def removeHeaders(names: String*): HttpRequest
Creates message excluding headers with given field names.
Creates message excluding headers with given field names.
- names
header field names
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def startLine: LineType
Gets message start line.
Gets message start line.
- Definition Classes
- HttpMessage
- abstract def withAttribute(attribute: (String, Any)): HttpRequest
Creates message with supplied attribute, replacing existing value, if any.
Creates message with supplied attribute, replacing existing value, if any.
- attribute
name/value pair
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def withAttributes(attributes: (String, Any)*): HttpRequest
Creates message with supplied attributes.
Creates message with supplied attributes. All previous attributes are removed.
- attributes
message attributes
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def withBody(body: Entity): HttpRequest
Creates message with supplied body.
Creates message with supplied body.
- body
message body
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def withHeader(header: Header): HttpRequest
Creates message with supplied header.
Creates message with supplied header. All previous headers with same field name are removed.
- header
message header
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def withHeaders(headers: Header*): HttpRequest
Creates message with supplied headers.
Creates message with supplied headers. All previous headers are removed.
- headers
message headers
- returns
new message
- Definition Classes
- MessageBuilder
- abstract def withMethod(method: RequestMethod): HttpRequest
Creates request with new method.
Creates request with new method.
- returns
new request
- abstract def withPath(path: String): HttpRequest
Creates request with new target path.
Creates request with new target path.
- returns
new request
- abstract def withQuery(params: (String, String)*): HttpRequest
Creates request with new query parameters.
Creates request with new query parameters.
- returns
new request
- abstract def withQuery(params: Map[String, Seq[String]]): HttpRequest
Creates request with new query parameters.
Creates request with new query parameters.
- returns
new request
- abstract def withQuery(query: QueryString): HttpRequest
Creates request with new query.
Creates request with new query.
- returns
new request
- abstract def withStartLine(line: LineType): HttpRequest
Creates message with supplied start line.
- abstract def withTarget(target: URI): HttpRequest
Creates request with new target.
Creates request with new target.
- returns
new request
- abstract def withVersion(version: HttpVersion): HttpRequest
Creates request with new HTTP version.
Creates request with new HTTP version.
- returns
new request
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def as[T](implicit parser: BodyParser[T]): T
Parses message body as defined type.
Parses message body as defined type.
- Definition Classes
- HttpMessage
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAttribute[T](name: String): Option[T]
Gets value of attribute with given name.
- def getAttributeOrElse[T](name: String, default: => T): T
Gets value of attribute with given name, or returns default if attribute not present.
Gets value of attribute with given name, or returns default if attribute not present.
- name
attribute name
- default
default value
- Definition Classes
- HttpMessage
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getHeader(name: String): Option[Header]
Gets first header with given name.
Gets first header with given name.
- Definition Classes
- HttpMessage
- def getHeaderOrElse(name: String, default: => Header): Header
Gets first header with given name, or returns default if header not present.
Gets first header with given name, or returns default if header not present.
- Definition Classes
- HttpMessage
- def getHeaderValue(name: String): Option[String]
Gets value of first header with given name.
Gets value of first header with given name.
- Definition Classes
- HttpMessage
- def getHeaderValueOrElse(name: String, default: => String): String
Gets value of first header with given name, or returns default if header not present.
Gets value of first header with given name, or returns default if header not present.
- Definition Classes
- HttpMessage
- def getHeaderValues(name: String): Seq[String]
Gets value of all headers with given name.
Gets value of all headers with given name.
- Definition Classes
- HttpMessage
- def getHeaders(name: String): Seq[Header]
Gets all headers with given name.
Gets all headers with given name.
- Definition Classes
- HttpMessage
- def hasHeader(name: String): Boolean
Tests whether header with given name is present.
Tests whether header with given name is present.
- Definition Classes
- HttpMessage
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def method: RequestMethod
Gets request method.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def target: URI
Gets request target.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def version: HttpVersion
Gets HTTP version.
Gets HTTP version.
- Definition Classes
- HttpMessage
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()