v / vlib / x / async / examples / net_http / README.md
21 lines · 15 sloc · 743 bytes · 15fb60b77ea6073658aa8355b247f2e1ae03b714
Raw

net.http integration example

This example shows how x.async can coordinate local net.http request and response handling without opening a network listener.

It is intentionally synthetic: requests are constructed in memory, processed by a small handler, and drained through a Pool. This keeps the example stable while still showing the lifecycle pattern used by HTTP-facing code:

Run from the repository root:

./v run vlib/x/async/examples/net_http/request_batch.v

No external service, fixed port, file path, or real HTTP server is used.