implicit final class IfRange extends AnyVal
Provides standardized access to If-Range header.
- Alphabetic
- By Inheritance
- IfRange
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new IfRange(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
getIfRange: Option[Either[EntityTag, Instant]]
Gets If-Range header value if present.
-
def
hasIfRange: Boolean
Tests for If-Range header.
-
def
ifRange: Either[EntityTag, Instant]
Gets If-Range header value.
Gets If-Range header value.
- Exceptions thrown
HeaderNotFound
if If-Range is not present
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeIfRange: HttpRequest
Creates new request removing If-Range header.
-
def
setIfRange(value: Instant): HttpRequest
Creates new request setting If-Range header to supplied value.
-
def
setIfRange(value: EntityTag): HttpRequest
Creates new request setting If-Range header to supplied value.
-
def
setIfRange(value: Either[EntityTag, Instant]): HttpRequest
Creates new request setting If-Range header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.