1

In ASP.NET core you can append headers using the Append method -

Code example,

response.Headers.Append("Some-Header", HeaderValue);

Is there a way to achieve the same in .NET Framework 4.8?

1
  • Please try this link. Commented Apr 28, 2023 at 1:27

1 Answer 1

1

You can use HttpResponse.AppendHeader.

response.AppendHeader("Some-Header", HeaderValue);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.