Replies: 2 comments 1 reply
-
Can you show a complete program demonstrating this behavior? |
Beta Was this translation helpful? Give feedback.
-
For the moment I do use this construction
but as I mentioned before when I trying to get header it returned with header name ... As an eg lets take following code as an example
it will printout something like that
Am a new one in rust and actix and maybe Ive missed something ... Ive tried to google methods how to get header ... without header value but had no luck |
Beta Was this translation helpful? Give feedback.
-
I'm trying to grab auth header value but it returns full header value (name and value) ... are there built-in method to grab only value?
let auth = request.headers().get(ActixHttpHeader::AUTHORIZATION).unwrap().to_str().unwrap();
Beta Was this translation helpful? Give feedback.
All reactions