Can I check header existense for HttpResponseBuilder inside external crate? #3124
Unanswered
ym-project
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm trying to extend HttpResponse struct with my own functions.
My goal - I want to check contentType existence.
But I don't know how to do this.
I looked for implementation of
json
and noticed what actix-web uses methodself.inner()
to implement the same conditionactix-web/actix-web/src/response/builder.rs
Lines 333 to 350 in d445742
But that method is private.
How can I do the same?
Beta Was this translation helpful? Give feedback.
All reactions