ContentType

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

Adds standardized access to Content-Type header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

Gets Content-Type header value.

Gets Content-Type header value.

Attributes

Throws
HeaderNotFound

if Content-Type is not present

Gets Content-Type header value if present.

Gets Content-Type header value if present.

Attributes

Creates new message with Content-Type header removed.

Creates new message with Content-Type header removed.

Attributes

def hasContentType: Boolean

Tests for Content-Type header.

Tests for Content-Type header.

Attributes

def setContentType(value: MediaType): T

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

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

Attributes