C# Класс ClearCanvas.Common.Rest.RestClient.Response

Represents the response to an HTTP request.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
EnsureCleanUp ( ) : void
Response ( HttpWebResponse response ) : System

Описание методов

AsString() публичный Метод

Obtains the body of the response as a string, and closes the response.
public AsString ( ) : string
Результат string

Dispose() публичный Метод

Closes the response.
public Dispose ( ) : void
Результат void

GetFilename() публичный Метод

public GetFilename ( ) : string
Результат string

GetResponseStream() публичный Метод

Gets the response stream. It is the responsibility of the consumer to dispose of the stream when finished.
public GetResponseStream ( ) : Stream
Результат Stream

IsContentMultipartRelated() публичный Метод

public IsContentMultipartRelated ( ) : bool
Результат bool

WriteToStream() публичный Метод

Writes the body of the response to the specified stream, and closes the response.
public WriteToStream ( Stream stream ) : void
stream Stream
Результат void