1
0
mirror of https://github.com/actix/examples synced 2024-12-05 03:01:55 +01:00
Commit Graph

140 Commits

Author SHA1 Message Date
Rob Ede
6f1c9e2350
standardize binary names 2022-02-18 02:22:58 +00:00
Rob Ede
cc3d356209
restructure folders 2022-02-18 02:01:48 +00:00
Rob Ede
4d8573c3fe
update all websocket examples to v4 2022-02-18 01:44:53 +00:00
Rob Ede
1b23e3ff3d
update async-graphql example 2022-02-17 21:29:55 +00:00
averichev
ddb84ebf6f
feat: Example for Sailfish template engine (#528)
Co-authored-by: aaverichev <Aleksandr.Averichev@hermesrussia.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-02-17 20:15:18 +00:00
Rob Ede
0b74135fb0
Adding auto OpenSSL ACME Let's Encrypt example. (#523)
Co-authored-by: Lajto Mekadimon <85128868+lajtomekadimon@users.noreply.github.com>
2022-02-06 16:31:44 +00:00
Rob Ede
fb9f9d243d
disable db/diesel for now 2022-02-06 08:31:17 +00:00
Rob Ede
da60a30fd9
delete db/r2d2 example 2022-02-06 08:25:38 +00:00
Rob Ede
a72663ed26
remove db/sqlx_todo example 2022-02-06 07:09:35 +00:00
Rob Ede
d36c2f0f1f
clean up run-in-thread 2022-02-02 02:09:06 +00:00
Rob Ede
ffb20a1b20
move http-proxy to other 2022-02-02 02:03:54 +00:00
Rob Ede
062a3af80c
delete udp echo example 2022-01-29 16:06:32 +00:00
fakeshadow
414bf927b8
remove example use async_std::fs (#461) 2021-10-22 08:44:40 +01:00
Rishad Baniya
11cd3f2b58
Middleware example - Redirect http connections to https (#457) 2021-10-13 15:06:42 +01:00
Eric
817c7e1150
Working middleware using extensions_mut (#402)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-10-07 04:04:19 +01:00
Isabel Atkinson
cc948594fe
Add MongoDB example (#452)
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
2021-10-06 22:23:12 +01:00
Daniel T. Rodrigues
7487a81e90
Fix sqlx_todo CI checks (#415) 2021-03-03 23:37:17 +09:00
Daniel T. Rodrigues
c3407627d0
Restructure folders (#411) 2021-02-26 00:57:58 +00:00
Rob Ede
7148fd3d0e
add client certificate example (#380) 2020-10-30 04:22:24 +00:00
Sunli
e5f64562b1
Add async-graphql example (#278) 2020-09-16 01:12:41 +01:00
Hanif Ariffin
adccbe2a13
Add tiny_template as an example. (#358) 2020-09-10 21:34:32 +01:00
Rob Ede
4ada3c9ed1
Merge pull request #333 from fakeshadow/master 2020-06-28 00:05:25 +01:00
fakeshadow
c7660c8f86 fixes according to reviews
Fix typos. Format the comments. Use macro for routes. etc
2020-06-28 06:15:34 +08:00
alvardes
5926035d6c
Update udp-echo example to actix 0.9 and tokio 0.2. (#336) 2020-06-25 05:19:22 +01:00
fakeshadow
1e61a03d5f add example for App::data_factory 2020-06-22 21:16:25 +08:00
Mark Lodato
b7ff0d1ffe
Add bare-bones WS server for autobahn testing (#331) 2020-06-19 20:38:11 +01:00
Yuki Okushi
3730fa8f55
Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00
Yuki Okushi
6bfdec78af
Fix workspace compilation 2020-04-30 03:21:47 +09:00
Juan Aguilar Santillana
a65abad80d Update yarte version to 0.8 2020-04-28 21:18:18 +02:00
Yuki Okushi
3f6a81e39b
Merge pull request #293 from actix/fix/chat-broker
websocket chat broker improvements
2020-04-09 17:37:59 +09:00
Rob Ede
a892a062e1
upgrade ws chat broker dependencies 2020-04-09 01:54:28 +01:00
Yuki Okushi
b84e1d9fb4
part3: Update dependencies 2020-04-08 01:18:52 +09:00
Stig Johan Berggren
8f3ce39d05
New example: Return JSON decode errors to a client (#268)
* Add JSON decode error example

* cargo fmt

* Use more appropriate response codes

* curl -i similar for all examples

* Add one more example of 422 response

* use to_string instead of empty format!
2020-03-16 03:21:13 +09:00
Chojan Shang
84b364544b
Add a basic casbin example for actix-web. (#264)
* Add the casbin example for actix-web.

* Update for clear description.
2020-03-03 15:13:43 +09:00
dowwie
54a2c3da92 added awc ssl example 2020-03-01 08:55:00 -05:00
curiousdev
50332ca491 Add docker_sample to examples collection 2020-02-24 15:08:04 -03:00
leizzer
120182f7de
Merge pull request #250 from cheolgyu/master
multipart + s3 example
2020-02-10 18:10:27 -03:00
cheolgyu
08b3621ac5 rename 2020-02-07 09:34:56 +09:00
Elliot Jackson
443b8197ed
Update protobuf to actix-web 2.0.0 (#249)
* Update to actix-web 2.0.0

* Add README.md
2020-02-07 02:17:23 +09:00
cheolgyu
71d1d05118 update readme.md 2020-02-06 10:51:22 +09:00
cheolgyu
5fb3d3270e example 2020-02-05 12:53:33 +09:00
dowwie
da72aef69c enhanced, renamed shutdown example and modified async_pg readme 2020-01-31 07:10:56 -05:00
Rob Ede
16a3c47a2c add self shutdown route example (#240) 2020-01-26 08:49:19 +09:00
torfmaster
469f8b538f Create async-std multipart example (#228) 2020-01-23 10:16:08 +09:00
dowwie
e0c8f4533e added async_pg example 2020-01-15 19:19:15 -05:00
Juan Aguilar
fed19e37b9 Update yarte version to "0.5" (#222) 2020-01-01 02:11:29 +09:00
Nikolay Kim
a0812c9b29 add run-in-thread example 2019-12-25 07:44:33 +04:00
Nikolay Kim
d914b1c694 update dependencies 2019-12-20 22:30:26 +06:00
Nikolay Kim
31b5b7aa49 convert more examples 2019-12-16 13:09:54 +06:00
Nikolay Kim
ca3f11b59e migrate readis and websockets examples 2019-12-16 11:23:36 +06:00
Juan Aguilar
22fd5f3869 Update template yarte (#210) 2019-12-15 23:07:58 +06:00
Nikolay Kim
e166c66f0b migrate websocket-chat example 2019-12-15 22:55:54 +06:00
Nikolay Kim
3127352797 upgrade to 2.0 alpha.3 2019-12-07 23:59:24 +06:00
Nikolay Kim
423f64254a rename graphql demo 2019-12-07 20:21:34 +06:00
Dwi Sulfahnur
1f434406f3 GraphQL Example with Juniper (#181)
* actix-graphql-demo added to examples

* Add actix-graphql-demo to the cargo.toml as a member
2019-12-07 20:16:46 +06:00
Arve Seljebu
d85adb8513 server-sent events (#177)
* server-sent events

* remove stale clients

* ping as message
2019-09-25 10:39:49 +06:00
Anton Patrushev
bbcd4f4c93 Merge branch 'master' into udp-echo
# Conflicts:
#	.travis.yml
#	Cargo.toml
2019-09-17 21:42:44 +02:00
Rotem Yaari
bc7e9f5e6b Remove old http-proxy, use the full version as the official http-proxy example (closes #164) 2019-08-21 18:07:34 +03:00
Nikolay Kim
44053504ad reenable uds example; cargo fmt 2019-07-18 18:03:19 +06:00
Nikolay Kim
93275d7986 update chat-broker example and fmt 2019-07-11 15:02:25 +06:00
Kai Yao
733eb93a97 Added json_error example. (#146) 2019-06-22 13:08:18 +06:00
Alexandru Tiniuc
006b7f3d08 adds Handlebars example
Closes #122
2019-06-08 18:48:20 +01:00
mohanson
8371d77f7c Add jsonrpc example 2019-04-15 10:05:22 +08:00
dowwie
d29f113ffc added async_ex2 2019-04-09 14:12:07 -04:00
Nikolay Kim
273068c362 use jsonwebtoken repo as temp solution to ring dep 2019-03-30 09:33:18 -07:00
Nikolay Kim
9a80911b92 update to alpha2 2019-03-30 09:12:42 -07:00
Juan Aguilar Santillana
7ed8d19b66 Add template yarte 2019-03-12 21:15:53 +01:00
Nikolay Kim
e2945b9b39 update more examples and rustfmt 2019-03-09 18:03:09 -08:00
Anton Patrushev
0d45081fa0 code review fixes 2019-02-22 15:00:58 +05:00
Anton Patrushev
2cd0ea9a2e udp echo server example 2019-02-20 22:21:59 +05:00
Harry Gill
2fc76ac49b simple-auth-server added to examples (#65) 2018-12-09 18:55:36 +03:00
Rotem Yaari
e30915d98d Add example of a full HTTP proxy, proxying body, header and method (#58) 2018-11-04 12:20:57 +03:00
Christopher Ricketts
8edf86e4b8 WebSocket Chat example using actix-broker (#44)
WebSocket Chat Example rewrite with actix-broker
2018-09-18 13:19:45 +03:00
Dan Munckton
60c3ca2050 Add actix-todo example 2018-09-02 10:45:06 +01:00
Darin
a677dc8a92
Merge pull request #37 from Dowwie/master
cache and delete entry
2018-08-12 06:08:02 -04:00
dowwie
7ccde8c2d3 added actix_redis example 2018-08-11 06:58:29 -04:00
Nikolay Kim
ca32d68769 rustls example 2018-08-07 22:34:16 -07:00
dowwie
8f62837614 added error_handling example 2018-08-07 12:03:16 -04:00
Sadika Sumanapala
7156e1cbf0 Rename example 'complex-middleware' to 'cookie-auth-full' 2018-07-23 15:29:32 +05:30
Sadika Sumanapala
1e7402e2bb Complex middleware example 2018-07-21 20:07:58 +05:30
Gorm Casper
ab7736c790 init 2018-07-09 20:18:31 +02:00
Gorm Casper
8c7a0ab29b create form example 2018-07-04 17:12:33 +02:00
dowwie
0cb217c08a added async_db project 2018-05-26 17:05:12 -04:00
Nikolay Kim
e4f1833215 cleanup and cargo fmt 2018-05-20 21:03:29 -07:00
Nikolay Kim
16f7649b29 split websocket-chat example 2018-05-11 14:35:43 -07:00
Nikolay Kim
bbeb262a5c upgrade actix-web to 0.6 2018-05-08 11:08:43 -07:00
Nikolay Kim
85af2bce54 add cookie session example 2018-05-02 15:11:57 -07:00
Nikolay Kim
cde7ef8c96 add askama example 2018-04-24 09:12:48 -07:00
Nikolay Kim
894a795ee7 add cookie auth example 2018-04-18 16:46:35 -07:00
Nikolay Kim
1dea2cf3c3 add workspace 2018-04-13 12:32:15 -07:00