Object/Trait

com.nrinaudo.fetch

MediaType

Related Docs: trait MediaType | package fetch

Permalink

object MediaType

Defines MediaType implementations as well as known types.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaType
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class All(params: MediaTypeParameters = new MediaTypeParameters()) extends MediaType with Product with Serializable

    Permalink

    All media types: * / *

  2. trait Grammar extends HttpGrammar

    Permalink

    Defines parses for the media type syntax.

  3. final case class Range(main: String, params: MediaTypeParameters = new MediaTypeParameters()) extends MediaType with Product with Serializable

    Permalink

    Media range, with a main-type only (such as text/ *, for example).

  4. final case class Specific(main: String, sub: String, params: MediaTypeParameters = new MediaTypeParameters()) extends MediaType with Product with Serializable

    Permalink

    Specific media type, with both a main- and sub-type (such as text-plain, for example).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Application: Range

    Permalink
  5. val Atom: MediaType

    Permalink
  6. val Css: MediaType

    Permalink
  7. val Csv: MediaType

    Permalink
  8. val Dtd: MediaType

    Permalink
  9. val EcmaScript: MediaType

    Permalink
  10. val Everything: All

    Permalink
  11. val Gif: MediaType

    Permalink
  12. val Gzip: MediaType

    Permalink
  13. val Html: MediaType

    Permalink
  14. val Image: Range

    Permalink
  15. val JavaScript: MediaType

    Permalink
  16. val Jpeg: MediaType

    Permalink
  17. val Json: MediaType

    Permalink
  18. val OctetStream: MediaType

    Permalink
  19. val Pdf: MediaType

    Permalink
  20. val PlainText: MediaType

    Permalink
  21. val Png: MediaType

    Permalink
  22. val PostScript: MediaType

    Permalink
  23. val RdfXml: MediaType

    Permalink
  24. val RssXml: MediaType

    Permalink
  25. val Rtf: MediaType

    Permalink
  26. val SoapXml: MediaType

    Permalink
  27. val Svg: MediaType

    Permalink
  28. val Text: Range

    Permalink
  29. val Vcard: MediaType

    Permalink
  30. val Woff: MediaType

    Permalink
  31. val Xhtml: MediaType

    Permalink
  32. val Xml: MediaType

    Permalink
  33. val Zip: MediaType

    Permalink
  34. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  35. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  38. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  40. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  41. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. def parse(str: String): Option[MediaType]

    Permalink

    Attempts to extract a media type from the specified string.

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. def unapply[T](res: Response[T]): Option[MediaType]

    Permalink

    Allows pattern matching against instances of Response, as in

    Allows pattern matching against instances of Response, as in

    val req: Request[Response[ResponseEntity]] = ???
    
    req.map {
      case MediaType(type) => println("Media type: " + type)
    }
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped