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 v test v => v test-compiler 2019-12-01 12:50:13 +03:00
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 struct capitalization: fix the rest of tests 2019-09-28 22:26:44 +03:00
vweb vweb: continue after bad http client connection; performance fixes 2019-12-11 17:32:54 +03:00
word_counter compiler/vlib: replace substr/left/right with [start..end] everywhere 2019-10-27 10:03:15 +03:00
x64 x64: fix off by one error in for loops 2019-11-29 12:33:36 +03:00
.gitignore v test v => v test-compiler 2019-12-01 12:50:13 +03:00
cli.v vlib: cli module 2019-11-21 15:03:12 +03:00
empty_gg_freetype.v examples: fix gg/freetype example 2019-11-20 07:35:13 +03:00
fibonacci.v examples/fibonacci: stop before overflowing and use u64 2019-10-30 14:54:38 +03:00
hello_v_js.v github actions: simplify ci.yml, test js backend on windows 2019-09-21 18:34:17 +03:00
hello_world.v check unused and unmodified vars in all modules, not just main 2019-12-06 18:43:56 +03:00
json.v final linguist test 2019-08-30 13:57:53 +03:00
links_scraper.v compiler/vlib: replace substr/left/right with [start..end] everywhere 2019-10-27 10:03:15 +03:00
log.v v test v => v test-compiler 2019-12-01 12:50:13 +03:00
nbody.v parser: restore outer variable in index exprs 2019-08-30 12:16:39 +03:00
news_fetcher.v sync/waitgroup: force sleeping for 1ms 2019-12-03 15:05:08 +03:00
random_ips.v examples: add random_ips.v 2019-11-20 17:58:24 +03:00
rune.v add str function for rune 2019-07-01 17:36:23 +02:00
spectral.v examples: fix spectral.v 2019-12-03 11:52:38 +03:00
sqlite.v sqlite: use in-memory database in examples and tests 2019-11-12 19:25:30 +03:00
terminal_control.v vfmt fixes 2019-07-17 21:00:39 +02:00
v_script.vsh fix examples/v_script.vsh and add it to CI 2019-12-07 18:27:09 +03:00