Comments (1)
that's correct - it uses threads to handle incoming requests, so no real need for async/await, but if you really need it, you can use PeanutButter's Async.RunSync
(see https://github.com/fluffynuts/PeanutButter/blob/master/source/Utils/PeanutButter.Utils/Async.cs) to use an async handler inside a "synchronous" body (remembering that HttpServer uses threads, not tasks.
What's your use-case? HttpServer was created as a testing utility - set up a temporary http server to test code where you can't inject stuff, or to test that "last mile" that has to do actual requests. I don't think it would be brilliant for high-volume traffic, but I could be proven wrong :D
from peanutbutter.
Related Issues (20)
- FeatReq: Add Extra Parameters to Services PeanutButter.WindowsServiceManagement HOT 3
- Quotes HOT 2
- CORS policy HOT 3
- semi-colon ini text value causes truncation HOT 21
- IniFile should not use ordinal Dictionary HOT 4
- ini Remove method leaves the key behind HOT 3
- Per-project documentation
- Switch build, pack & push to use `dotnet` HOT 1
- Project restructuring to simplify dev, especially multi-platform dev
- semi-colon ini text value causes truncation (2022) HOT 9
- SetValue return value HOT 1
- How to set encoding? HOT 1
- PeanutButter.INI: CommentDelimiter not respected when saving HOT 2
- PeanutButter.INI exception HOT 6
- [PeanutButter.INI] How can I add an empty line at the last line? HOT 6
- PeanutButter.DuckTyping: Parameter count error when trying to invoke overloaded method HOT 7
- Update PeanutButter.EasyArgs to be AOT-friendly
- [PeanutButter.INI] - Not possible to persist ini file if there is a SectionSeparator and no section HOT 2
- PeanutButter.INI request for new Load overload HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peanutbutter.