ReqRest
Show / Hide Table of Contents

Class HttpStatusCodeBuilderExtensions

Defines the static methods for an IHttpStatusCodeBuilder provided by the library.

Inheritance
Object
HttpStatusCodeBuilderExtensions
Namespace: ReqRest.Builders
Assembly: ReqRest.dll
Syntax
public static class HttpStatusCodeBuilderExtensions

Methods

SetStatusCode<T>(T, Int32)

Sets the HTTP status code which is being built.

Declaration
public static T SetStatusCode<T>(this T builder, int statusCode)
    where T : IHttpStatusCodeBuilder
Parameters
Type Name Description
T builder

The builder.

Int32 statusCode

The HTTP status code.

Returns
Type Description
T

The specified builder.

Type Parameters
Name Description
T

The type of the builder.

Exceptions
Type Condition
ArgumentNullException
  • builder

SetStatusCode<T>(T, HttpStatusCode)

Sets the HTTP status code which is being built.

Declaration
public static T SetStatusCode<T>(this T builder, HttpStatusCode statusCode)
    where T : IHttpStatusCodeBuilder
Parameters
Type Name Description
T builder

The builder.

HttpStatusCode statusCode

The HTTP status code.

Returns
Type Description
T

The specified builder.

Type Parameters
Name Description
T

The type of the builder.

Exceptions
Type Condition
ArgumentNullException
  • builder
Back to top Copyright © 2019 ReqRest - Generated with DocFX - Material Theme made by Oscar Vásquez - Impressum (Imprint)