https://github.com/takkyuuplayer/v-chunkio
https://github.com/takkyuuplayer/v-chunkio
vlang vlang-module
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/takkyuuplayer/v-chunkio
- Owner: takkyuuplayer
- License: mit
- Created: 2021-09-11T07:37:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T09:21:29.000Z (almost 2 years ago)
- Last Synced: 2024-08-24T10:33:25.086Z (almost 2 years ago)
- Topics: vlang, vlang-module
- Language: V
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# v-chunkio

HTTP 1.1 chunk writer
```v
import takkyuuplayer.chunkio
fn main() {
mut output := os.stdout()
mut buf := chunkio.new_writer(writer: output)
buf.write('abc'.bytes()) ? // Output: 3\r\nabc\r\n
buf.close() ? // Output: 0\r\n\r\n
}
```