Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't speak for the actix-web maintainers but I did find this in their examples:

    #[get("/resource1/{name}/index.html")]
    fn index(req: HttpRequest, name: web::Path<String>) -> String {
        println!("REQ: {:?}", req);
        format!("Hello: {}!\r\n", name)
    }
see https://github.com/actix/actix-web/blob/e399e01a22b8a848ecbb...


I've just run it and it works! I didn't know about the macro.


The thing with actix's web stuff is that things like these are just not well documented yet.

I also had no idea about this macro until I was digging through documentation for something else.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: