mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
picoev, x.vweb: small fixes and backport changes from vweb (#20584)
This commit is contained in:
parent
2874e7cac0
commit
d88ca11a4c
18 changed files with 319 additions and 129 deletions
|
@ -50,6 +50,6 @@ fn callback(data voidptr, req picohttpparser.Request, mut res picohttpparser.Res
|
|||
|
||||
fn main() {
|
||||
println('Starting webserver on http://localhost:${port}/ ...')
|
||||
mut server := picoev.new(port: port, cb: callback)
|
||||
mut server := picoev.new(port: port, cb: callback)!
|
||||
server.serve()
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ fn main() {
|
|||
mut pico := picoev.new(
|
||||
port: port
|
||||
raw_cb: handle_conn
|
||||
)
|
||||
)!
|
||||
pico.serve()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue