com.nrinaudo.fetch

ResponseEntity

class ResponseEntity extends AnyRef

Represents a raw response entity.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ResponseEntity
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResponseEntity(mediaType: Option[MediaType], content: InputStream)

    mediaType

    media type of the entity.

    content

    stream from which to read the content of the entity.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def as[T](implicit arg0: (ResponseEntity) ⇒ T): T

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def charset: Option[Charset]

    Charset in which the entity is written, if any.

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val content: InputStream

    stream from which to read the content of the entity.

  11. def decode(encoding: Encoding): ResponseEntity

  12. def empty(): Unit

    Reads the whole response and discards it.

    Reads the whole response and discards it.

    This method is useful when callers have no interest in the response's content, but want to re-use connections if possible. If keep-alive is not desirable / enabled, the ignore method might be preferred.

  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def ignore(): Unit

    Ignores this entity.

    Ignores this entity.

    This method will close the underlying stream without reading its content. This is useful when callers have no interest in the response entity and don't want to to through the trouble of reading the response.

    Do note, however, that calling this method will prevent the underlying connection from being re-used by keep-alive.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val mediaType: Option[MediaType]

    media type of the entity.

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withReader[T](f: (Reader) ⇒ T): T

    Executes the specified function on this response entity.

    Executes the specified function on this response entity.

    This method will take care of closing the underlying stream.

  30. def withStream[T](f: (InputStream) ⇒ T): T

    Executes the specified function on this response entity.

    Executes the specified function on this response entity.

    This method will take care of closing the underlying stream.

Inherited from AnyRef

Inherited from Any

Ungrouped