axum/examples
Grzegorz Baranski 4792d0c15c
Make ws::Message an enum for easier frame type matching (#116)
* feat(ws): make Message an enum to allow pattern matching

* fix(examples): update to new websockets `Message`

* fix(ws): remove wildcard imports

* fix(examples/chat): apply clippy's never_loop

* style: `cargo fmt`

* docs:add license notes above parts that are copied

* fix(ws): make CloseCode an alias to u16

* fix: move Message from src/ws/mod.rs to src/extract/ws.rs

* docs: add changelog entry about websocket messages

* fix: remove useless convertions to the same type
2021-08-07 19:47:22 +02:00
..
async-graphql Replace hyper::Server with axum::Server in docs (#118) 2021-08-04 15:38:51 +02:00
chat Add chat example (#78) 2021-08-01 22:42:34 +02:00
self_signed_certs Add TLS example (with rustls) (#57) 2021-08-01 08:32:47 +02:00
sse Server-Sent Events (#75) 2021-08-01 21:49:17 +02:00
templates Add HTML template example (#17) 2021-06-13 13:58:12 +02:00
websocket Add support for websockets (#3) 2021-06-12 20:50:30 +02:00
404.rs Handle METHOD_NOT_ALLOWED in 404 example (#131) 2021-08-06 01:15:23 +02:00
chat.rs Make ws::Message an enum for easier frame type matching (#116) 2021-08-07 19:47:22 +02:00
error_handling_and_dependency_injection.rs Support returning any http_body::Body from IntoResponse (#86) 2021-08-07 18:03:21 +02:00
form.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
hello_world.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
key_value_store.rs Implement path extractor (#124) 2021-08-06 10:17:57 +02:00
multipart_form.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
README.md docs: add community showcase (#126) 2021-08-05 13:47:19 +02:00
sessions.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
sse.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
static_file_server.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
templates.rs Support returning any http_body::Body from IntoResponse (#86) 2021-08-07 18:03:21 +02:00
testing.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
tls_rustls.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
todos.rs Implement path extractor (#124) 2021-08-06 10:17:57 +02:00
tokio_postgres.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
unix_domain_socket.rs Simplify tracing-subscriber initialization (#128) 2021-08-05 19:43:03 +02:00
versioning.rs Support returning any http_body::Body from IntoResponse (#86) 2021-08-07 18:03:21 +02:00
websocket.rs Make ws::Message an enum for easier frame type matching (#116) 2021-08-07 19:47:22 +02:00

Examples

Community showcase

  • Houseflow: House automation platform written in Rust.