Class HttpResponseReasonPhraseBuilderExtensions
Defines the static methods for an IHttpResponseReasonPhraseBuilder provided by the library.
Namespace: ReqRest.Builders
Assembly: ReqRest.dll
Syntax
public static class HttpResponseReasonPhraseBuilderExtensions
Methods
SetReasonPhrase<T>(T, Nullable<String>)
Sets the reason phrase of the HTTP message which is being built.
Declaration
public static T SetReasonPhrase<T>(this T builder, string? reasonPhrase)
where T : IHttpResponseReasonPhraseBuilder
Parameters
| Type | Name | Description |
|---|---|---|
| T | builder | The builder. |
| Nullable<String> | reasonPhrase | The reason phrase. |
Returns
| Type | Description |
|---|---|
| T | The specified |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the builder. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|