1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

87 Commits

Author SHA1 Message Date
Hitalo Souza
d2902e700f
examples: show how to use a before_request method for the multi-route examples, be more informative about DB creation problems (#16279) 2022-11-01 19:02:07 +02:00
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
CC
d336b7b877
examples: add another vweb example, showing file upload, transform, and file download (#14842) 2022-06-24 09:23:47 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Delyan Angelov
178afd006b
examples: avoid flash of unstyled content in the vweb_assets example 2022-03-21 19:13:53 +02:00
Delyan Angelov
3bae489e35
examples: make the vweb_assets.v example more robust (always change work folder to the folder of the executable). Document the vweb.Context.handle_static behaviour. 2022-03-21 19:05:18 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Subhomoy Haldar
114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
Delyan Angelov
637ebe5d42
examples: improve examples/vweb/file_upload 2021-11-10 18:26:16 +02:00
Delyan Angelov
3c6356ba36
ci: fix request_test.v (add missing \r to hardcoded post data) 2021-11-10 18:16:15 +02:00
Delyan Angelov
466ced2876
net.http: fix multipart/form-data file upload handling 2021-11-10 17:31:41 +02:00
Miccah
ce9f26c589
examples/vweb: use map instead of string in call to app.json (#12338) 2021-10-31 12:31:49 +02:00
Alexander Medvednikov
49886b8c40 examples: add a missing vweb header 2021-09-21 08:13:42 +03:00
Alexander Medvednikov
f6bdc6b87e tmpl: fix <div> inside <div> 2021-09-21 07:54:10 +03:00
Alexander Medvednikov
80976e640c vweb: remove init_server() from all examples, tutorials, and tests 2021-08-03 16:03:16 +03:00
shadow
eca7af107a
examples: fix static vweb assets example (#11008) 2021-08-01 21:46:30 +03:00
Miccah
1a6a7a678a
vweb: change Context.headers from string to struct Header (#10749) 2021-07-18 12:21:07 +03:00
Miccah
c3c420a41c
vweb: remove chunked encoding support in server responses (#10750) 2021-07-13 15:47:16 +03:00
Miccah
6a19a13812
vweb: re-enable concurrency and fix the counter example (#10484) 2021-06-17 02:08:02 +03:00
Alexander Medvednikov
dcfea5c69b vweb: detect mime type automatically in serve_static() 2021-05-22 07:02:25 +03:00
Delyan Angelov
c55549a16a
ci: fix v build-examples 2021-05-11 11:10:35 +03:00
Alexander Medvednikov
dc034d9b16 vweb: make thread safe; checker: $if T is Interface { 2021-05-11 09:30:18 +03:00
Delyan Angelov
cafe382424
vweb: update references to old .init_once() and .init() methods to .init_server() and .before_request() 2021-04-26 19:38:13 +03:00
Lukas Neubert
16e79bc3ca
tools: format most examples and tutorials, add them to v test-cleancode (#9826) 2021-04-20 17:16:35 +03:00
Alexander Medvednikov
a18f85c8cd vweb: init_once() => init_server(); init() => before_request() 2021-04-15 06:27:24 +03:00
Delyan Angelov
cd423251da
vweb: add .mount_static_folder_at/2 , use it instead of app.handle_static in the server_sent_events example 2021-03-02 21:30:18 +02:00
Miccah
d0fab60981
vweb: refactor routing logic (#9025) 2021-03-01 11:50:52 +01:00
Miccah
7e08e84bc1
vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
Alexander Medvednikov
3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
Louis Schmieder
7a35131721
vweb: add handle static root & documentation (#8865) 2021-02-21 20:01:29 +02:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
Delyan Angelov
f4b757e47d
examples: add examples/vweb/server_sent_events; implement vweb.sse 2021-02-03 16:03:06 +02:00
Delyan Angelov
89bf48e3ba
ci: fix v -W build-examples 2021-01-31 10:43:49 +02:00
Hitalo de Jesus do Rosário Souza
8dff63b824
vweb: example: make css in vweb_assets.v work (#8090) 2021-01-30 14:20:13 +01:00
Louis Schmieder
f7c251f8f3
vweb: add multipart/form-data parser and file upload (#8160) 2021-01-21 11:08:51 +01:00
Louis Schmieder
38881e4b20
vweb: Implement chunked encoding transfer (#8179) 2021-01-18 13:04:21 +01:00
Daniel Däschle
5dbc19410c
examples: fix vweb assets example (#7949) 2021-01-07 20:46:23 +01:00
Alexander Medvednikov
7bcc5afbb6 ci: run tutorial 2021-01-01 20:25:49 +01:00
Daniel Däschle
5ae3637d27
checker: revert embedded methods fix (#7780) 2021-01-01 14:36:07 +01:00
Alexander Medvednikov
2bc9ee4d88 vweb: more updates 2020-12-31 17:47:20 +01:00
Alexander Medvednikov
2533c706ae vweb: migrate all tests and examples to the new syntax 2020-12-31 17:22:47 +01:00
Alexander Medvednikov
3ffdcd8910 vweb: embed context 2020-12-31 17:07:27 +01:00
Delyan Angelov
3795aaab5c v test-fmt: reformat some skipped files, comment on the remaining ones 2020-10-15 00:39:09 +03:00
Enzo
18034bb95c
gen: fix multiple call of expression in match (#6324) 2020-09-08 00:38:24 +02:00
Louis Schmieder
3cd9e2cab7
vweb: fix index (#5682) 2020-07-05 22:05:58 +02:00
Alexander Medvednikov
1505f3e22c vweb: fix an example 2020-07-05 16:52:20 +02:00
Alexander Medvednikov
02b846aa72 vweb: fix json() and text() results 2020-06-27 13:56:15 +02:00
Alexander Medvednikov
1d8d19c977 vweb: return $vweb.html() 2020-06-20 03:12:38 +02:00
Alexander Medvednikov
deddc71720 examples: fix vweb_assets.v 2020-06-10 12:05:35 +02:00
Alexander Medvednikov
b904d7d1ba vweb: debug prints behind $if debug 2020-06-10 11:50:06 +02:00