1. HttpResponseMessageExtensions

Class HttpResponseMessageExtensions

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Extension methods for the class mainly to handle common errors which can happen when using Sitecore Content Hub REST API.

Inheritance
System.Object
HttpResponseMessageExtensions
Namespace: Stylelabs.M.Sdk.WebClient.Http
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
public static class HttpResponseMessageExtensions : object

Methods

HandleErrors(HttpResponseMessage)

Inspects the specified response and throws an instance of if it contains errors (i.e. the response is not success).

Declaration
public static Task HandleErrors(this HttpResponseMessage response)
Parameters
TypeNameDescription
HttpResponseMessageresponse

The response to inspect.

Returns
TypeDescription
Task
この記事を改善するための提案がある場合は、 お知らせください!