Class HttpProtocolVersionBuilderExtensions
Defines the static methods for an IHttpProtocolVersionBuilder provided by the library.
Namespace: ReqRest.Builders
Assembly: ReqRest.dll
Syntax
public static class HttpProtocolVersionBuilderExtensions
Methods
SetVersion<T>(T, Version)
Sets the HTTP protocol version which is being built.
Declaration
public static T SetVersion<T>(this T builder, Version version)
where T : IHttpProtocolVersionBuilder
Parameters
Type | Name | Description |
---|---|---|
T | builder | The builder. |
Version | version | The HTTP protocol version. |
Returns
Type | Description |
---|---|
T | The specified |
Type Parameters
Name | Description |
---|---|
T | The type of the builder. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|