trait MessageBuilder[T <: HttpMessage] extends AnyRef
Provides builder pattern for HTTP message.
- Alphabetic
- By Inheritance
- MessageBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
addHeaders(headers: Header*): T
Creates message with additional headers.
Creates message with additional headers.
- headers
additional message headers
- returns
new message
-
abstract
def
removeAttribute(name: String): T
Creates message excluding attribute with given name.
Creates message excluding attribute with given name.
- name
attribute name
- returns
new message
-
abstract
def
removeHeaders(names: String*): T
Creates message excluding headers with given field names.
Creates message excluding headers with given field names.
- names
header field names
- returns
new message
-
abstract
def
withAttribute(attribute: (String, Any)): T
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
-
abstract
def
withAttributes(attributes: (String, Any)*): T
Creates message with supplied attributes.
Creates message with supplied attributes. All previous attributes are removed.
- attributes
message attributes
- returns
new message
-
abstract
def
withBody(body: Entity): T
Creates message with supplied body.
Creates message with supplied body.
- body
message body
- returns
new message
-
abstract
def
withHeader(header: Header): T
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
-
abstract
def
withHeaders(headers: Header*): T
Creates message with supplied headers.
Creates message with supplied headers. All previous headers are removed.
- headers
message headers
- returns
new message
-
abstract
def
withStartLine(line: T.LineType): T
Creates message with supplied start line.
Creates message with supplied 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )