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
HttpWebResponseThe HTTP web response.
Returns
GetMetadata(HttpWebResponse)
Gets the user-defined metadata.
public static IDictionary<string, string> GetMetadata(HttpWebResponse response)
Parameters
response
HttpWebResponseThe 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
HttpWebResponseThe 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
HttpWebResponseThe 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
StreamThe 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
StreamThe stream from which to read the service stats.
Returns
- ServiceStats
The service stats stored in the stream.