Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

asp.net Read raw Body

app.Use(async (context, next) =>
{
    var initialBody = context.Request.Body;

    using (var bodyReader = new StreamReader(context.Request.Body))
    {
        string body = await bodyReader.ReadToEndAsync();
        Console.WriteLine(body);
        context.Request.Body = new MemoryStream(Encoding.UTF8.GetBytes(body));
        await next.Invoke();
        context.Request.Body = initialBody;
    }
});
Comment

PREVIOUS NEXT
Code Example
Csharp :: get user by username c# 
Csharp :: C# console out restore 
Csharp :: how to make your player movr the way you are rotated in unity 
Csharp :: get path revit linked unload 
Csharp :: can a dictionary type use get set c# 
Csharp :: tulpep notification window example c# 
Csharp :: entity save example in c# model first 
Csharp :: jsonconvert serializeobject and jsonconvert deserialize to list 
Csharp :: xamarin forms set the grid row property of an element programmatically 
Csharp :: transformquestionmarks=OCR 
Csharp :: properties vs field c# 
Csharp :: binary search tree c# stackoverflow 
Csharp :: Hangfire Creation Table With EFCore 
Csharp :: c# change chart legend font size 
Csharp :: resharper render pages folder asp.net core 
Csharp :: get current culture in controller asp.net core 6 
Csharp :: nullable IList 
Csharp :: subarray c# 
Csharp :: Cursor Invisibility 
Csharp :: c# dictionary contain key but returns false 
Csharp :: .net form binding why cant i skip index 
Csharp :: c sharp while statement 
Csharp :: multiple lines in string c# parameterized 
Csharp :: Make a variable public without showing in the inspector 
Csharp :: How to compile just one file in c# 
Csharp :: c# make a negative number positive 
Csharp :: c# datagridview filter 
Csharp :: linq where c# 
Csharp :: multithreading in .net core 
Csharp :: width="331" height="331" 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =