Hacker News new | ask | show | jobs
by killercup 2564 days ago
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...
1 comments

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.