MaxForwards

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

Adds standardized access to Max-Forwards header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasMaxForwards: Boolean

Tests for Max-Forwards header.

Tests for Max-Forwards header.

Attributes

def maxForwards: Long

Gets Max-Forwards header value.

Gets Max-Forwards header value.

Attributes

Throws
HeaderNotFound

if Max-Forwards is not present

def maxForwardsOption: Option[Long]

Gets Max-Forwards header value if present.

Gets Max-Forwards header value if present.

Attributes

Creates new request with Max-Forwards header removed.

Creates new request with Max-Forwards header removed.

Attributes

def setMaxForwards(value: Long): HttpRequest

Creates new request with Max-Forwards header set to supplied value.

Creates new request with Max-Forwards header set to supplied value.

Attributes