Table of Contents

Class FileHttpResponseParsers

Namespace
Microsoft.WindowsAzure.Storage.File.Protocol
Assembly
Microsoft.WindowsAzure.Storage.dll

Provides methods for parsing responses to operations on files in the File service.

public static class FileHttpResponseParsers
Inheritance
FileHttpResponseParsers
Inherited Members

Methods

GetCopyAttributes(HttpWebResponse)

Extracts a CopyState object from the headers of a web response.

public static CopyState GetCopyAttributes(HttpWebResponse response)

Parameters

response HttpWebResponse

The HTTP web response.

Returns

CopyState

A CopyState object, or null if the web response does not include copy state.

GetMetadata(HttpWebResponse)

Gets the user-defined metadata.

public static IDictionary<string, string> GetMetadata(HttpWebResponse response)

Parameters

response HttpWebResponse

The response from server.

Returns

IDictionary<string, string>

A IDictionary of the metadata.

GetProperties(HttpWebResponse)

Gets the file's properties from the response.

public static FileProperties GetProperties(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

FileProperties

The file's properties.

GetRequestId(HttpWebResponse)

Gets the request ID from the response.

public static string GetRequestId(HttpWebResponse response)

Parameters

response HttpWebResponse

The web response.

Returns

string

A unique value associated with the request.

ReadServiceProperties(Stream)

Reads service properties from a stream.

public static FileServiceProperties ReadServiceProperties(Stream inputStream)

Parameters

inputStream Stream

The stream from which to read the service properties.

Returns

FileServiceProperties

The service properties stored in the stream.

ReadServiceStats(Stream)

Reads service stats from a stream.

public static ServiceStats ReadServiceStats(Stream inputStream)

Parameters

inputStream Stream

The stream from which to read the service stats.

Returns

ServiceStats

The service stats stored in the stream.