MaxForwards

final implicit
class MaxForwards(request: HttpRequest) extends AnyVal

Provides standardized access to Max-Forwards header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def getMaxForwards: Option[Long]

Gets Max-Forwards header value if present.

Gets Max-Forwards header value if present.

def hasMaxForwards: Boolean

Tests for Max-Forwards header.

Tests for Max-Forwards header.

def maxForwards: Long

Gets Max-Forwards header value.

Gets Max-Forwards header value.

Throws
HeaderNotFound

if Max-Forwards is not present

Creates new request with Max-Forwards header removed.

Creates new request with Max-Forwards header removed.

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.