ContentLength

scamper.http.headers.ContentLength
final class ContentLength[T <: HttpMessage](message: T) extends AnyVal

Adds standardized access to Content-Length header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def contentLength: Long

Gets Content-Length header value.

Gets Content-Length header value.

Attributes

Throws
HeaderNotFound

if Content-Length is not present

def contentLengthOption: Option[Long]

Gets Content-Length header value if present.

Gets Content-Length header value if present.

Attributes

Creates new message with Content-Length header removed.

Creates new message with Content-Length header removed.

Attributes

def hasContentLength: Boolean

Tests for Content-Length header.

Tests for Content-Length header.

Attributes

def setContentLength(value: Long): T

Creates new message with Content-Length header set to supplied value.

Creates new message with Content-Length header set to supplied value.

Attributes