trait MessageBuilder[T <: HttpMessage] extends AnyRef
Provides builder pattern for HTTP message.
- Self Type
- MessageBuilder[T] with T
- Alphabetic
- By Inheritance
- MessageBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def withAttributes(attributes: Map[String, Any]): T
Creates message with supplied attributes.
Creates message with supplied attributes.
- attributes
message attributes
- returns
new message
- Note
All previous attributes are removed.
- abstract def withBody(body: Entity): T
Creates message with supplied body.
Creates message with supplied body.
- body
message body
- returns
new message
- abstract def withHeaders(headers: Seq[Header]): T
Creates message with supplied headers.
Creates message with supplied headers.
- headers
message headers
- returns
new message
- Note
All previous headers are removed.
- abstract def withStartLine(startLine: T.LineType): T
Creates message with supplied start line.
Creates message with supplied start line.
- startLine
message start line
- returns
new message
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 addHeaders(one: Header, more: Header*): T
Creates message with additional headers.
Creates message with additional headers.
- one
message header
- more
additional message headers
- returns
new message
- def addHeaders(headers: Seq[Header]): T
Creates message with additional headers.
Creates message with additional headers.
- headers
message headers
- returns
new message
- def addOptionalHeader(name: String, value: Option[String]): T
Creates message with additional header, if value supplied.
Creates message with additional header, if value supplied.
- name
header name
- value
optional header value
- returns
new message
- 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- def removeAttributes(one: String, more: String*): T
Creates message excluding attributes with given names.
Creates message excluding attributes with given names.
- one
attribute name
- more
additional attribute names
- returns
new message
- def removeAttributes(names: Seq[String]): T
Creates message excluding attributes with given names.
Creates message excluding attributes with given names.
- names
attribute names
- returns
new message
- def removeHeaders(one: String, more: String*): T
Creates message excluding headers with given names.
Creates message excluding headers with given names.
- one
header name
- more
additional header names
- returns
new message
- def removeHeaders(names: Seq[String]): T
Creates message excluding headers with given names.
Creates message excluding headers with given names.
- names
header names
- returns
new message
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- def withAttribute(attribute: (String, Any)): T
Creates message with supplied attribute.
Creates message with supplied attribute.
- attribute
name/value pair
- returns
new message
- Note
If attribute already exists, its value is replaced.
- def withAttributes(one: (String, Any), more: (String, Any)*): T
Creates message with supplied attributes.
Creates message with supplied attributes.
- one
message attribute
- more
additional message attributes
- returns
new message
- Note
All previous attributes are removed.
- def withHeader(header: Header): T
Creates message with supplied header.
Creates message with supplied header.
- header
message header
- returns
new message
- Note
All previous headers with same name are removed.
- def withHeaders(one: Header, more: Header*): T
Creates message with supplied headers.
Creates message with supplied headers.
- one
message header
- more
additional message headers
- returns
new message
- Note
All previous headers are removed.
- def withOptionalHeader(name: String, value: Option[String]): T
Creates message with optional header.
Creates message with optional header.
- name
header name
- value
optional header value
- returns
new message
- Note
All previous headers with same name are removed; if no value is supplied, then no header is added.
Provided herein is API documentation for Scamper, the HTTP library for Scala.