Azure-functions-durable-extension: Support for HttpRequest/IActionResult in HTTP-specific APIs

Created on 23 May 2018  路  3Comments  路  Source: Azure/azure-functions-durable-extension

The latest Azure functions code has moved away from using Task<HttpResponseMessage> and HttpRequestMessage req and has moved to this format

        public static async Task<IActionResult> Run(
                        [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]
                        HttpRequest req,
                        TraceWriter log)

Returning an IActionResult and HttpRequest instead of HttpRequestMessage

enhancement fix-ready help wanted

All 3 comments

Hello @cgillum,

I am interested in helping with this issue.

Do you have any recommendation or design guidelines apart from the description above?

Thank you!

Now that Functions 2.0 is GA, I think it's the perfect time to revisit this one. I was originally thinking we needed to use #ifdef for this, but actually we might be able to reference the Microsoft.AspNetCore.Http.Abstractions for both the .NET 4.6.1 (v1.1.2) and the .NET Standard 2.0 (v2.1.1) implementations. So basically, we will have two sets of HTTP APIs, one set that works with .NET Framework HTTP APIs and one that works with .NET Core HTTP APIs.

Bumping this one back up. We're planning a Durable Functions 2.0 release, where we drop support for Functions 1.0 and fully embrase Functions 2.0+. This means we can actually replace our legacy HTTP APIs with the new ones (HttpRequest, IActionResult, etc.)

Was this page helpful?
0 / 5 - 0 ratings