Expect

scamper.http.headers.Expect
final class Expect(request: HttpRequest) extends AnyVal

Adds standardized access to Expect header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def expect: String

Gets Expect header value.

Gets Expect header value.

Attributes

Throws
HeaderNotFound

if Expect is not present

def expectOption: Option[String]

Gets Expect header value if present.

Gets Expect header value if present.

Attributes

Creates new request with Expect header removed.

Creates new request with Expect header removed.

Attributes

def hasExpect: Boolean

Tests for Expect header.

Tests for Expect header.

Attributes

def setExpect(value: String): HttpRequest

Creates new request with Expect header set to supplied value.

Creates new request with Expect header set to supplied value.

Attributes