Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions v/config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language:
version: weekly.2026.08
version: 0.5.1
files:
- "**/*.v"
- server
bootstrap:
- cd /opt/vlang && git fetch --all --tags && git checkout weekly.2026.08 && make && v -version && cd /app
- cd /opt/vlang && v -version && cd /app
build_flags:

engines:
Expand Down
2 changes: 1 addition & 1 deletion v/pico/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn callback(data voidptr, req picohttpparser.Request, mut res picohttpparser.Res
}
if req.method == 'POST' {
if req.path == '/user' {
res.write_string('HTTP/1.1 200 OK\r\n')
res.write_string('HTTP/1.1 201 Created\r\n')
res.header('Connection', 'keep-alive')
res.header('Content-Type', 'text/plain')
res.header('Content-Length', '0')
Expand Down
5 changes: 4 additions & 1 deletion v/vanilla_epoll/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
framework:
github: vlang/v

# Install as the `vanilla` module (import vanilla.http_server). `v install <url>`
# now namespaces by owner (~/.vmodules/enghitalo/vanilla), so clone to the
# expected path instead.
download:
- v install https://github.com/enghitalo/vanilla
- mkdir -p $HOME/.vmodules && git clone --depth 1 https://github.com/enghitalo/vanilla $HOME/.vmodules/vanilla

build_deps:
- liburing-dev linux-libc-dev liburing2
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions v/veb/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn (mut app App) get_user_id(mut ctx Context, id string) veb.Result {

@['/user'; post]
fn (mut app App) post_user(mut ctx Context) veb.Result {
ctx.res.set_status(.created)
ctx.set_header(.connection, 'keep-alive')
ctx.set_header(.content_length, '0')
return ctx.text('')
Expand Down
Loading