1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples
Delyan Angelov 13769f440f vweb: continue after bad http client connection; performance fixes
* Enable compiling vweb with -prod (by supressing 'declared and not used' warning about 'reset') .

* Fix http responses (now wrk is happy and shows no errors) by adding a Content-Length header.

* Fix -g compilation for urllib.v .

* vweb: println action= only in debug mode.

* vweb: max request headers counting fix.

* Make vweb.html get a 'ctx mut Context' param, just like the other methods.

* vweb: simplify add_header.

* Use a string builder for the most common html case so that the response http text can be send in one go.

* vweb: reduce _STR/string interpolation usage in the most common html response case.

* vweb: refactor common http response formatting into Context.send_response_to_client/2 method.
2019-12-11 17:32:54 +03:00
..
database fix pg orm example 2019-12-10 00:06:37 +03:00
eventbus
game_of_life remove os/time references from live programs, fix warnings 2019-12-09 18:53:17 +03:00
hot_reload remove os/time references from live programs, fix warnings 2019-12-09 18:53:17 +03:00
tetris 2 more unneeded casts removed 2019-12-08 01:39:27 +03:00
vcasino
vweb vweb: continue after bad http client connection; performance fixes 2019-12-11 17:32:54 +03:00
word_counter
x64
.gitignore
cli.v
empty_gg_freetype.v
fibonacci.v
hello_v_js.v
hello_world.v check unused and unmodified vars in all modules, not just main 2019-12-06 18:43:56 +03:00
json.v
links_scraper.v
log.v
nbody.v
news_fetcher.v sync/waitgroup: force sleeping for 1ms 2019-12-03 15:05:08 +03:00
random_ips.v
rune.v
spectral.v
sqlite.v
terminal_control.v
v_script.vsh fix examples/v_script.vsh and add it to CI 2019-12-07 18:27:09 +03:00