question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need a BodyAsString extension method

See original GitHub issue

It would be nice to have a BodyAsString() method off of HttpRequest.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jchannoncommented, Oct 13, 2017

Yup it would come off HttpRequest and probably end up in this folder https://github.com/jchannon/Botwin/tree/master/src/Request as a StreamExtensions.cs

0reactions
jchannoncommented, Oct 14, 2017

@leomicheloni - @BugAgain has sent a PR so I think they have it covered. Feel free to spot anything that needs changing/adding and raise an issue and if relevant you can setup a PR. Keep an eye out on the labels on the issues too. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension Methods - C# Programming Guide
Extension methods in C# enable you to add methods to existing types without creating a new derived type, recompiling, or otherwise modifying ...
Read more >
What does the extension method do in c# and why do you ...
Extension Methods allow an existing type to be extended with new methods without changing the definition of the original.
Read more >
When to write extension methods for your own classes?
An extension method allows you to have this method globally accessible within your project (and possible consumers of your project), ...
Read more >
Java's Missing Feature: Extension Method
An extension method means to add methods to an existing type without creating a new derived type, recompiling, or modifying the existing type....
Read more >
Reading the raw request body as a string in ASP.NET Core
ASP.NET MVC model binding is great, but occasionally you just need to access the body of a request as a raw string within...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found