MaxForwards

final 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 removing Max-Forwards header.

Creates new request removing Max-Forwards header.

def setMaxForwards(value: Long): HttpRequest

Creates new request setting Max-Forwards header to supplied value.

Creates new request setting Max-Forwards header to supplied value.