HPCloud-JS

API Docs for: 1.0.0
Show:

RemoteObject Class

Extends Stream
Module: hpcloud

A Remote Object (from object storage).

Constructor

RemoteObject

(
  • name
  • response
)

Parameters:

  • name String

    The name of the object

  • response Object

    A HTTP response for an object.

Item Index

Methods

destroy

()

Close the underlying object.

info

() ObjectInfo

Get the ObjectInfo about this object.

Returns:

ObjectInfo: The ObjectInfo object associated with the remote object.

pause

()

Send a signal to the underlying communication layer requesting no more data be sent.

resume

()

Resumes incoming data.

setEncoding

(
  • encoding
)

Set the encoding for an object.

Parameters:

  • encoding String

    The encoding to use.