Use HttpRequestData or HttpRequest in HttpTrigger when using the isolated worker model?

Brian 20 Reputation points
2024-11-27T17:55:50.0633333+00:00

We are planning to migrate function apps from in-process model to isolated model.

In below links, the isolated worker model sample are using the HttpRequest & IActionResult same as in-process model

https://learn.microsoft.com/en-us/azure/azure-functions/migrate-dotnet-to-isolated-model?tabs=net8

But, there is some kind of viewpoint that we must use the HttpRequestData & HttpResponseData in isolated worker model. Do you have any suggestions or comments on this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,205 questions
{count} votes

Accepted answer
  1. Shireesha Eeraboina (Quadrant Resource LLC) 235 Reputation points Microsoft Vendor
    2024-12-02T14:37:14.8233333+00:00

    Hi @Brian,

    Welcome to the Microsoft Q&A Platform!

    As mentioned here in this documentation: https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=hostbuilder%2Clinux#http-trigger

    if you are using isolated built-http model then you need to use HttpRequestData and HttpResponseData. 

    If you are using ASP .Net Core integration model you need to HttpRequest & HttpResponse. 

    I hope this helps! Let me know if you have any further questions.

    Thank you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.