implicit final class ContentRange[T <: HttpMessage] extends AnyVal
Provides standardized access to Content-Range header.
- Alphabetic
- By Inheritance
- ContentRange
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ContentRange(message: T)
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 contentRange: ByteContentRange
Gets Content-Range header value.
Gets Content-Range header value.
- Exceptions thrown
HeaderNotFound
if Content-Range is not present
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getContentRange: Option[ByteContentRange]
Gets Content-Range header value if present.
- def hasContentRange: Boolean
Tests for Content-Range header.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def removeContentRange()(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message removing Content-Range header.
- def toString(): String
- Definition Classes
- Any
- def withContentRange(value: ByteContentRange)(implicit ev: <:<[T, MessageBuilder[T]]): T
Creates new message setting Content-Range header to supplied value.
Provided herein is API documentation for Scamper, the HTTP library for Scala.