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

Represents the response to an HTTP request.
Inheritance: IDisposable
Afficher le fichier Open project: jasper-yeh/ClearCanvas

Méthodes publiques

Méthode 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

Méthode Description
EnsureCleanUp ( ) : void
Response ( HttpWebResponse response ) : System

Method Details

AsString() public méthode

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

Dispose() public méthode

Closes the response.
public Dispose ( ) : void
Résultat void

GetFilename() public méthode

public GetFilename ( ) : string
Résultat string

GetResponseStream() public méthode

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

IsContentMultipartRelated() public méthode

public IsContentMultipartRelated ( ) : bool
Résultat bool

WriteToStream() public méthode

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