implicit final class MaxForwards extends AnyVal
Provides standardized access to Max-Forwards header.
- Alphabetic
- By Inheritance
- MaxForwards
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MaxForwards(request: HttpRequest)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getMaxForwards: Option[Long]
Gets Max-Forwards header value if present.
-
def
hasMaxForwards: Boolean
Tests for Max-Forwards header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxForwards: Long
Gets Max-Forwards header value.
Gets Max-Forwards header value.
- Exceptions thrown
HeaderNotFound
if Max-Forwards is not present
-
def
removeMaxForwards: HttpRequest
Creates new request removing Max-Forwards header.
-
def
setMaxForwards(value: Long): HttpRequest
Creates new request setting Max-Forwards header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.