Extension Methods: Http¶
TL;DR — This page mirrors the
Httpsection from Extension Methods as a focused reference.
When to use¶
Use this page when you need the focused member list, signatures, and source notes for this section without scanning the full parent reference.
C# (CAC) usage¶
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.
Edge cases¶
- This page is generated from the parent reference section; edit the source XML docs or generator when content needs to change.
- If a linked source member is renamed, regenerate the reference docs before changing prose by hand.