public static string CanonicalizeHttpRequest(RequestContext requestContext, NephosUriComponents uriComponents, bool isFileService = false) { if (!MessageCanonicalizer.IsVersionBeforeSep09(requestContext.RequestHeaders)) { return(MessageCanonicalizer.CanonicalizeHttpRequestVer1(uriComponents, requestContext, isFileService)); } return(MessageCanonicalizer.CanonicalizeHttpRequestDefault(requestContext.RequestUrl, uriComponents, requestContext.HttpMethod, requestContext.RequestContentType, requestContext.RequestHeaders, isFileService, requestContext.RequestRawUrlString)); }
public static string CanonicalizeHttpRequest(Uri uri, NephosUriComponents uriComponents, string method, NameValueCollection headers, bool multipleConditionalHeadersEnabled = false) { if (!MessageCanonicalizer.IsVersionBeforeSep09(headers["x-ms-version"])) { return(MessageCanonicalizer.CanonicalizeHttpRequestVer1(uri, uriComponents, method, headers, false, null, multipleConditionalHeadersEnabled)); } return(MessageCanonicalizer.CanonicalizeHttpRequestDefault(uri, uriComponents, method, headers["Content-Type"], headers, false, null)); }
public static string CanonicalizeHttpRequest(HttpWebRequest request, NephosUriComponents uriComponents) { if (!MessageCanonicalizer.IsVersionBeforeSep09(request.Headers)) { return(MessageCanonicalizer.CanonicalizeHttpRequestVer1(uriComponents, request)); } return(MessageCanonicalizer.CanonicalizeHttpRequestDefault(request.Address, uriComponents, request.Method, request.ContentType, request.Headers, false, null)); }
public static bool IsVersionBeforeSep09(NameValueCollection requestHeaders) { return(MessageCanonicalizer.IsVersionBeforeSep09(requestHeaders["x-ms-version"])); }