Skip to content

Extension Methods: Http

This page mirrors the Http section from Extension Methods.

ToHttpMethodEnum

Source file, signature, and docstring

Member HttpExtensions.ToHttpMethodEnum(this string stringHttpMethod)

Kind function

Declaring Type HttpExtensions (extension type)

Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs

Signature

public static HttpMethod ToHttpMethodEnum(this string stringHttpMethod)

Docstring

Converts a string representation of an HTTP method to the corresponding HttpMethod enum.

ConstructRequestDataAsync

Source file, signature, and docstring

Member HttpExtensions.ConstructRequestDataAsync(this Microsoft.AspNetCore.Http.HttpRequest request)

Kind function

Declaring Type HttpExtensions (extension type)

Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs

Signature

public static async Task<Data<object>> ConstructRequestDataAsync(this Microsoft.AspNetCore.Http.HttpRequest request)

Docstring

Constructs request data from an HttpRequest .

HandleResponseDataAndCloseAsync

Source file, signature, and docstring

Member HttpExtensions.HandleResponseDataAndCloseAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Data<object> responseData, HttpMethod method)

Kind function

Declaring Type HttpExtensions (extension type)

Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs

Signature

public static async Task HandleResponseDataAndCloseAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Data<object> responseData, HttpMethod method)

Docstring

Handles response data by setting headers and writing the response body.