Rob Ede
1a3fedc78f
update database examples
2023-03-13 17:58:08 +00:00
Jonas Fassbender
04f6f0bd02
Fixed keep-alive on response example ( #316 )
...
* fixed keep-alive on response example
* fixed dead code and unused variable errors
2023-03-03 15:07:26 +00:00
Ibraheem Ahmed
034a6f1890
Improve home page ( #305 )
...
* improve landing page
* revert navbar
2023-01-09 09:52:42 +00:00
Takahiro, NAKAMURA
f6d103da57
update user_session sample ( #292 )
2022-10-26 11:14:06 +01:00
Raphael C
2bc48c18c8
fix(ex-database): place pool get in web::block ( #290 )
2022-10-07 18:12:51 +01:00
Ovidiu Gheorghies
779f8ea83e
Change method from GET to POST ( #277 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-30 18:19:42 +01:00
Kenneth Allen
bb42ca002c
Update information on Compress middleware ( #279 )
2022-07-19 11:11:45 +01:00
Santiago
8393aea71a
migrate to docusaurus (v2) ( #266 )
...
Co-authored-by: ibraheemdev <ibrah1440@gmail.com>
2022-07-16 18:59:20 +09:00
Orhun Parmaksız
f12f950c91
Add full payload test for stream ( #272 )
2022-06-11 04:33:39 +01:00
Rob Ede
dde397f5f4
improve server docs
2022-04-07 16:52:12 +01:00
Rob Ede
7d988fc27e
improve extractors docs
2022-04-07 16:22:17 +01:00
Rob Ede
0ddb72f6b0
remove references to .data()
2022-04-07 15:55:55 +01:00
Rob Ede
b11a2f6e99
improve path docs
2022-04-07 15:54:55 +01:00
Rob Ede
12cbd2ebbf
s/Actix-web/Actix Web
2022-04-07 15:44:10 +01:00
nikstur
e370fddcc3
Bumped version of actix to 0.13 ( #267 )
2022-03-20 15:53:36 +00:00
Rob Ede
f504c65862
remove outdated info about force closing connections
2022-03-05 23:54:23 +00:00
Rob Ede
b8431bef6f
update remaining examples to v4
2022-02-26 05:22:21 +00:00
Rob Ede
997fb14e79
fix note about app_data
2022-02-26 04:50:39 +00:00
Rob Ede
81dfe300a2
update examples to v4 ( #258 )
2022-02-26 03:56:24 +00:00
Daniel Saxton
e3c8b5edca
Update logger example ( #250 )
2022-01-01 22:05:37 +00:00
Mark Lodato
3167a55853
Improve error handler example ( #248 )
2021-12-22 18:36:35 +00:00
nikstur
c66502c548
Improve json documentation ( #245 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-12-05 14:41:37 +00:00
Nrot
3fffc45c7e
Update to work code ( #241 )
2021-11-20 23:14:04 +00:00
maxstanley
bcf63b6e83
Fix Diesel Database example ( #234 )
2021-10-22 18:59:11 +09:00
HeartDev
e503dec23a
Correct the content-type in the ResponseBiuilder example ( #236 )
...
It's text/plain not plain/text
2021-08-23 14:43:35 +01:00
Ali MJ Al-Nasrawy
09ad5775ac
Remove invalid docs regarding parsing PathBuf
( #230 )
...
This paragraph is no longer valid since v1.0!
Also, the example code still compiles fine and this may easily introduce
a security vulnerability for the user.
2021-06-01 21:04:35 +09:00
Jacky Wu
63d70701e0
fix: correct my_errors log print issue. ( #229 )
2021-05-10 10:31:54 +01:00
Mark Lodato
1069dfa177
Clarify use of Arc in shared state ( #221 )
2021-04-06 08:41:26 +09:00
heddi.nabbisen
d148e3e437
Errors: split code lines to make where logger is wrapped clearer ( #218 )
2021-03-01 02:29:36 +00:00
Rokas Muningis
501d52b485
Include proper import/use example in testing docs, unit test section. ( #217 )
2021-02-28 19:31:00 +00:00
Rob Ede
4aece987ac
clarify what happens when extractor fails
2021-01-17 16:47:27 +00:00
Rob Ede
cdbb5dd2b2
use Bytes re-export
...
closes #202
2020-11-27 01:10:05 +00:00
Pirmin Kalberer
c5e185ae85
Fix param name in db example ( #191 )
2020-09-24 23:53:32 +01:00
Rob Ede
4d8d53cea5
v3 ( #188 )
2020-09-12 16:21:54 +01:00
John Bradley
a0ce9f28e2
fix function name in shared mutable state example ( #186 )
2020-09-06 10:45:51 +01:00
Michael Snoyman
d659d04649
Minor wording recommendations ( #184 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-09-04 13:19:43 +01:00
vo9312
1c9ccd8078
Update main.rs
2020-07-02 16:45:31 -05:00
Rob Ede
34ae647fd5
fix extraction in app state extract examples
...
fixes #167
2020-04-06 02:06:15 +01:00
Stig Johan Berggren
0b9a56aa2a
Use RUST_LOG env var if set ( #163 )
...
* Use RUST_LOG env var if set
* Remove redundant use statement
2020-03-03 06:53:39 +09:00
Daniel Franklin
b43bbd2b51
Fix logic bug in streaming request example
...
Previously the example printed "Chunk: {}" once after the entire
response was received, but the accompanying text read "we read and print
the request payload chunk by chunk".
The example now prints every chunk as it was received.
2020-03-01 15:26:05 -05:00
Rob Ede
85228f23ea
remove unusable create_app example
2020-02-16 21:55:16 +00:00
Yuki Okushi
e9b3985bcf
Suppress some warnings on CI ( #143 )
...
* Suppress some warnings on CI
* Remove unused imports
2020-01-23 10:17:13 +09:00
Evgeniy Tatarkin
bc4e0422c8
update testing to actix-web 2.0.0 and improve stream testing code ( #141 )
...
* update testing to actix-web 2.0.0 and improve stream testing code
2020-01-22 06:40:37 +09:00
Gerónimo Garcia Sgritta
f30016e112
Fix DB article code examples ( #140 )
...
This change fixes issue #139 and renders the code example
2020-01-04 20:04:35 +09:00
Nikolay Kim
4fffc16668
fix chunked example
2020-01-02 18:41:14 +06:00
Nikolay Kim
b8e2a2310c
update extractors
2020-01-02 18:33:33 +06:00
Nikolay Kim
4046b0b697
review handlers section
2020-01-02 13:11:12 +06:00
Nikolay Kim
e30c20016e
review server section
2020-01-02 12:56:32 +06:00
Nikolay Kim
e71c712d16
review application section
2020-01-02 12:43:41 +06:00
Nikolay Kim
26c877a519
remove sentry as it does not support actix-web 2.0
2020-01-02 11:44:04 +06:00
Dominic
b04e76e678
Update to actix-web 2.0 ( #131 )
2019-12-29 22:57:11 +09:00
Yuki Okushi
9f385d384b
Update websockets
2019-12-29 04:16:54 +09:00
Yuki Okushi
7a973d6fe9
Update url-dispatch
2019-12-29 04:10:02 +09:00
Yuki Okushi
1d6ccff3e8
Update static-files
2019-12-29 03:36:24 +09:00
Yuki Okushi
e21219c1da
Update server
2019-12-29 03:32:56 +09:00
Yuki Okushi
a255f4aea6
Update response
2019-12-29 02:59:48 +09:00
Yuki Okushi
2cd3428c8e
Update responder-trait
2019-12-29 02:47:27 +09:00
Yuki Okushi
4f2f930349
Update requests
2019-12-29 02:32:47 +09:00
Yuki Okushi
b0e8a8d51d
Update request-routing
2019-12-29 02:09:52 +09:00
Yuki Okushi
cc2a7a0645
Update request-handlers
2019-12-29 02:08:25 +09:00
Yuki Okushi
8594212533
Update powerful-extractors
2019-12-29 02:05:27 +09:00
Yuki Okushi
789cb0fd1a
Update middleware
2019-12-29 02:03:17 +09:00
Yuki Okushi
94c8c843b1
Update main-example
2019-12-29 01:38:51 +09:00
Yuki Okushi
9da187a36c
Update http2
2019-12-29 01:37:19 +09:00
Yuki Okushi
e018ce4278
Update getting-started
2019-12-29 01:33:19 +09:00
Yuki Okushi
37bd5e5da2
Update flexible-responders
2019-12-29 01:32:43 +09:00
Yuki Okushi
de7c7d3aed
Remove unnecessary dependency
2019-12-29 01:29:03 +09:00
Yuki Okushi
66c3bd8729
Update easu-form-handling example
2019-12-29 01:24:52 +09:00
Yuki Okushi
1e5f5ecf8b
Update autoreload example to v2
2019-12-29 01:21:10 +09:00
Yuki Okushi
67c0360864
Update application examples to v2
2019-12-29 01:15:22 +09:00
Dominic
20517d415d
Update examples/{extractors, errors} to futures 0.3 and actix-web 2.0 ( #130 )
...
* Update to futures 0.3
* update examples/errors to actix-web 2.0
2019-12-29 00:26:17 +09:00
Ralph Ursprung
e4eb883a0d
fix minor typo in output of extractors example ( #114 )
...
this has no effect on the actual functionality, it just fixes a typo
which was hard to overlook :)
2019-09-30 03:35:26 +09:00
Patrik Staš
f43a46b58e
Make sure app_mutable example works out of box ( #112 )
...
The page which refers make_app_mutable section: https://actix.rs/docs/application/
Although the original example compiled, I found it a bit incomplete as it didn't really start the server. As a beginner, I first tried to reuse original `main()` example and ran into lifetime issue with counter instance. Took me a bit to figure "ahha sure, I need to move it in."
2019-09-25 10:37:36 +06:00
Sven-Hendrik Haase
04bca7bf82
Fix PR comments
2019-08-06 01:30:50 +02:00
Sven-Hendrik Haase
553fe281fc
Document actix-web-codegen
...
This fixes #105
2019-08-05 18:32:00 +02:00
Sven-Hendrik Haase
a03b91023c
Merge pull request #103 from svenstaro/add-dyn-to-traits
...
Add dyn keyword to get rid of some warnings
2019-07-30 19:08:48 +02:00
Sven-Hendrik Haase
a7c8116fcd
Add bit about wrap_fn to middlewares page ( #104 )
2019-07-30 10:03:55 -07:00
Sven-Hendrik Haase
0ff37e7454
Add dyn keyword to get rid of some warnings
2019-07-29 12:44:00 +02:00
Nikolay Kim
b0ce2c21a2
fix state example
2019-07-22 11:10:21 +06:00
Katherine Philip
77b86e778f
Fix examples
2019-07-18 20:59:11 +07:00
Katherine Philip
31630f61f8
Minor tweaks
2019-07-15 17:12:37 +07:00
Katherine Philip
4521375534
Update App State documentation
2019-07-15 16:46:12 +07:00
Cameron Dershem
6f95771c34
Adds logging example to errors chapter.
2019-06-28 14:50:15 -04:00
Cameron Dershem
eb58a8692c
Makes clippy happy.
2019-06-28 14:22:51 -04:00
Cameron Dershem
5133ab874d
Final fixes before requesting review.
2019-06-28 13:31:30 -04:00
Cameron Dershem
cbf046b1f0
updates flexible responders.
2019-06-28 12:10:30 -04:00
Cameron Dershem
4833874c5d
Moves everything into the cargo workspace.
2019-06-26 19:18:43 -04:00
Cameron Dershem
0601997b41
Updates Compression section.
2019-06-26 14:15:03 -04:00
Cameron Dershem
387807ee6e
Websockets chapter done-ish.
2019-06-26 12:55:12 -04:00
Cameron Dershem
4436eff7de
Static Files is done-ish.
2019-06-26 04:27:25 -04:00
Cameron Dershem
eff4edb6fa
Middleware section is done-ish.
2019-06-26 02:59:20 -04:00
Cameron Dershem
1c3697197d
Responses section is done-ish.
2019-06-26 01:58:47 -04:00
Cameron Dershem
d7d4392d87
Requests is done-ish.
2019-06-26 01:27:17 -04:00
Cameron Dershem
be68e418b0
URL-Dispatch is done-ish.
2019-06-25 18:20:36 -04:00
Cameron Dershem
6b08c4664b
Errors section is done-ish.
2019-06-24 21:18:30 -04:00
Cameron Dershem
60f4f116cf
Testing is done-ish.
2019-06-24 17:43:31 -04:00
Cameron Dershem
4f57ce2fdb
Clippy fixes.
2019-06-22 09:18:08 -04:00
Cameron Dershem
339ac43814
Fixes missed example and config for extractors.
2019-06-20 04:26:34 -04:00
Cameron Dershem
c4c32091a6
extractors: done-ish.
2019-06-20 04:20:12 -04:00
Cameron Dershem
59f010461a
Handlers done-ish.
2019-06-20 02:04:22 -04:00
Cameron Dershem
4291b822fc
Server section is as good as I'm qualified.
2019-06-19 20:26:25 -04:00
Cameron Dershem
ea7bc84f8d
Intro: done-ish. Getting Started: done-ish. Application: done-ish.
2019-06-19 18:00:31 -04:00
Cameron Dershem
da969fed1f
simplifies the front-page examples.
2019-06-19 15:32:48 -04:00
Cameron Dershem
941bdfa491
Updates example version numbers to match actix-web version.
2019-06-19 00:38:23 -04:00
Cameron Dershem
4f9bd8b724
moves individual examples to pub mods to force building and have less dead_code
2019-06-19 00:20:50 -04:00
Cameron Dershem
a3cb721ed3
Removes websockets from feature rich mention.
2019-06-18 19:21:06 -04:00
Cameron Dershem
96d8bec2a8
fixes missing Comma.
2019-06-18 17:52:24 -04:00
Cameron Dershem
d42c8ee4a2
Updated SSL section with notes to create certs.
2019-06-18 17:29:54 -04:00
Cameron Dershem
e20f6d9d56
Updates http2 chapter after testing.
2019-06-18 17:17:43 -04:00
Cameron Dershem
1e8cdcd324
Removes author from Cargo.toml
2019-06-18 17:13:54 -04:00
Cameron Dershem
471d21b618
updates Getting Started.
2019-06-18 16:44:43 -04:00
Cameron Dershem
d762e83e74
Comments out non working sentry code.
2019-06-18 02:52:45 -04:00
Cameron Dershem
5ca7b6dc83
First pass at Sentry.
2019-06-18 02:42:43 -04:00
Cameron Dershem
559f54d22b
First pass at databases.
2019-06-18 02:21:24 -04:00
Cameron Dershem
917156db2c
Removes author from Cargo.toml
2019-06-17 18:40:29 -04:00
Cameron Dershem
5387f01269
First pass at Http2 section.
2019-06-17 18:31:10 -04:00
Cameron Dershem
262f835485
Moves websocket example to crate.
2019-06-17 18:07:57 -04:00
Cameron Dershem
769c9af8f9
First pass at Static Files.
2019-06-17 17:35:47 -04:00
Cameron Dershem
9a16b6db93
First pass at Middlewares.
2019-06-17 16:57:57 -04:00
Cameron Dershem
083522ef19
first pass at Testing.
2019-06-17 15:39:58 -04:00
Cameron Dershem
ea1600c417
First pass at Responses section.
2019-06-17 15:15:33 -04:00
Cameron Dershem
507842bf1c
First pass at Requests Chapter.
2019-06-17 14:34:23 -04:00
Cameron Dershem
f07c78a5ca
First pass at errors section.
2019-06-17 13:46:21 -04:00
Cameron Dershem
71e6f076a4
First pass at url-dispatch chapter.
2019-06-17 04:12:11 -04:00
Cameron Dershem
35156b0a75
Merge branch 'update1.0-url' into update1.0
2019-06-17 02:08:53 -04:00
Cameron Dershem
0c268d18c1
Quick pass at url-dispatch
2019-06-17 02:08:42 -04:00
Cameron Dershem
312031a085
Updates 'autoreloading' section
2019-06-17 00:44:38 -04:00
Cameron Dershem
3f95205696
Front page examples return 'impl Responder'
2019-06-16 23:37:57 -04:00
Cameron Dershem
f922e8fb96
First pass at Extractors.
2019-06-16 23:17:17 -04:00
Cameron Dershem
a313315a92
begin url-dispatch chapter.
2019-06-16 20:19:25 -04:00
Cameron Dershem
5bd4218b94
comments out keep_alive section to pass builds.
2019-06-15 17:01:17 -04:00
Cameron Dershem
cb31379c10
renames file to be more discoverable.
2019-06-15 17:00:15 -04:00
Cameron Dershem
f7b22dfdc0
First pass at Handlers chapter.
2019-06-15 16:37:08 -04:00
Cameron Dershem
8ab3e35851
First pass at Server section.
2019-06-13 17:10:51 -04:00
Cameron Dershem
992d182910
First pass at 'Application' section
2019-06-13 03:24:25 -04:00
Cameron Dershem
577dd90341
Updates getting-started to v1.0.
2019-06-13 00:33:32 -04:00
Cameron Dershem
315b131cdd
Cargo can't do nested workspaces.
2019-06-13 00:32:48 -04:00
Cameron Dershem
d2a2fc6979
Updates front-page flexible-responders to v1.0
2019-06-12 23:25:00 -04:00
Cameron Dershem
118286afb1
Updates front-page examples: powerful-extractor and easy-form-handling.
2019-06-12 19:23:51 -04:00
Cameron Dershem
cbd27e7668
Adds to workspace to test all code actually functions.
2019-06-12 18:14:10 -04:00
Cameron Dershem
a5f7e0d095
removes outdatej code in examples.
2019-06-12 04:56:59 -04:00
Cameron Dershem
8aa39e1afb
begin update of docs to actix-web 1.0
2019-06-12 04:51:45 -04:00
Nikolay Kim
5cd8d2edc8
use actix-web 0.7 for examples
2018-07-21 05:21:41 -07:00
Nikolay Kim
1bf14f774d
fix vh example
2018-06-09 06:26:27 -07:00
Nikolay Kim
5eb00bb9f3
Fix example
2018-06-09 04:58:22 -07:00
Yann Simon
14e47859a0
document how to start the app with state
2018-06-08 10:17:29 +02:00
Nikolay Kim
5938691794
add vh section
2018-06-07 21:08:11 -07:00
Armin Ronacher
ede773dd93
Outdent examples
2018-05-27 10:49:14 -07:00
Nikolay Kim
842c877da2
update url-dispatch examples
2018-05-24 10:13:55 -07:00
Nikolay Kim
ec11bf0db3
fix application examples
2018-05-24 09:31:40 -07:00