C# Class ClearCanvas.Common.Rest.RestClient.Response

Represents the response to an HTTP request.
Inheritance: IDisposable
Mostrar archivo Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
AsString ( ) : string

Obtains the body of the response as a string, and closes the response.

Dispose ( ) : void

Closes the response.

GetFilename ( ) : string
GetResponseStream ( ) : Stream

Gets the response stream. It is the responsibility of the consumer to dispose of the stream when finished.

IsContentMultipartRelated ( ) : bool
WriteToStream ( Stream stream ) : void

Writes the body of the response to the specified stream, and closes the response.

Private Methods

Method Description
EnsureCleanUp ( ) : void
Response ( HttpWebResponse response ) : System

Method Details

AsString() public method

Obtains the body of the response as a string, and closes the response.
public AsString ( ) : string
return string

Dispose() public method

Closes the response.
public Dispose ( ) : void
return void

GetFilename() public method

public GetFilename ( ) : string
return string

GetResponseStream() public method

Gets the response stream. It is the responsibility of the consumer to dispose of the stream when finished.
public GetResponseStream ( ) : Stream
return Stream

IsContentMultipartRelated() public method

public IsContentMultipartRelated ( ) : bool
return bool

WriteToStream() public method

Writes the body of the response to the specified stream, and closes the response.
public WriteToStream ( Stream stream ) : void
stream Stream
return void