Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
HttpRequestData Class
Definition
- Namespace:
- Microsoft.Azure.Functions.Worker.Http
- Assembly:
- Microsoft.Azure.Functions.Worker.Core.dll
- Package:
- Microsoft.Azure.Functions.Worker.Core v1.11.0
- Source:
- HttpRequestData.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A representation of the HTTP request sent by the host.
public abstract class HttpRequestData
type HttpRequestData = class
Public MustInherit Class HttpRequestData
- Inheritance
-
HttpRequestData
Constructors
| Name | Description |
|---|---|
| HttpRequestData(FunctionContext) |
Initializes a new instance of the HttpRequestData class. |
Properties
| Name | Description |
|---|---|
| Body |
A Stream containing the HTTP body data. |
| Cookies |
Gets an IReadOnlyCollection<T> containing the request cookies. |
| FunctionContext |
Gets the FunctionContext for this request. |
| Headers |
Gets a HttpHeadersCollection containing the request headers. |
| Identities |
Gets an IEnumerable<T> containing the request identities. |
| Method |
Gets the HTTP method for this request. |
| Query |
Gets the NameValueCollection containing the request query. |
| Url |
Gets the Uri for this request. |
Methods
| Name | Description |
|---|---|
| CreateResponse() |
Creates a response for this request. |
Extension Methods
| Name | Description |
|---|---|
| CreateResponse(HttpRequestData, HttpStatusCode) |
Creates a response for the the provided HttpRequestData. |
| ReadAsString(HttpRequestData, Encoding) |
Reads the body payload as a string. |
| ReadAsStringAsync(HttpRequestData, Encoding) |
Reads the body payload as a string. |
| ReadFromJsonAsync<T>(HttpRequestData, CancellationToken) |
Reads the request using the default ObjectSerializer configured for this worker. |
| ReadFromJsonAsync<T>(HttpRequestData, ObjectSerializer, CancellationToken) |
Reads the request using the provided ObjectSerializer. |
Applies to
Azure SDK for .NET
Feedback
Was this page helpful?
