Allow

scamper.http.headers.Allow
final class Allow(response: HttpResponse) extends AnyVal

Adds standardized access to Allow header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def allow: Seq[RequestMethod]

Gets Allow header values.

Gets Allow header values.

Attributes

Returns

header values or empty sequence if Allow is not present

def allowOption: Option[Seq[RequestMethod]]

Gets Allow header values if present.

Gets Allow header values if present.

Attributes

Creates new response with Allow header removed.

Creates new response with Allow header removed.

Attributes

def hasAllow: Boolean

Tests for Allow header.

Tests for Allow header.

Attributes

def setAllow(values: Seq[RequestMethod]): HttpResponse

Creates new response with Allow header set to supplied values.

Creates new response with Allow header set to supplied values.

Attributes

Creates new response with Allow header set to supplied values.

Creates new response with Allow header set to supplied values.

Attributes