Official Discord: https://discord.gg/NWpN5mmg3x | Powerful web framework for Rust | https://github.com/actix/actix-web/wiki/FAQ
robjtede on master
tweak migration document (compare)
github-actions[bot] on gh-pages
Deploying to gh-pages from @ 5… (compare)
github-actions[bot] on gh-pages
Deploying to gh-pages from @ f… (compare)
robjtede on test-v0.1.0-beta.13
robjtede on http-test-v3.0.0-beta.13
robjtede on master
prepare actix-http-test release… prepare actix-test release 0.1.… (compare)
github-actions[bot] on gh-pages
Deploying to gh-pages from @ a… (compare)
robjtede on actors-v4.0.0-beta.12
robjtede on master
prepare actix-web-actors releas… (compare)
robjtede on awc-v3.0.0-beta.21
robjtede on master
prepare awc release 3.0.0-beta.… (compare)
robjtede on http-v3.0.0-rc.3
robjtede on master
prepare actix-http release 3.0.… (compare)
if they're connected to the same backend redis server then the auth with work across domains (assuming the cookies are set up correctly)
for subdomains, there is a Host guard (see docs) which would allow you to use the same AW server for multiple subdomains
otherwise, if you want to use separate servers, then a reverse proxy set up with Traefik or Nginx is a good route to explore
Hey guys,
I am trying to use SSE (server send events) with code below
when browser try to subscribe, it is just stuck till timeout. (req timeout)
#[get("/events")]
async fn event( broadcaster: web::Data<Mutex<Broadcaster>>) -> impl Responder {
println!("enter events locking broadcaster");
let mut map : HashMap<String, String> = HashMap::new();
map.insert("status".to_string() , "connected".to_string());
let rx = broadcaster.lock().unwrap().new_client( map );
println!("add newclient");
HttpResponse::Ok()
.header("content-type", "text/event-stream")
// .no_chunking(64)
.streaming(rx)
}
I trace it, it reach HttpResponse::Ok and stuck there
I wonder if the no_chunking is required?
awc
in my projects
reqwest-middleware
for that
async
? Or is it not useful?