Closed alex-kattathra-johnson closed 8 hours ago
Not sure I understand what you mean - can you explain what you're missing? The library already provides a way to respond with a specific header (check the docs).
I want to respond with a Sec-WebSocket-Accept
header based on the key that is sent in the request header.
Got it, so you need to set the response header to a dynamic value, like in Mock::with_body_from_request
. I think this library could acommodate something like Mock::with_header_from_request
with a similar signature. PRs are welcome ;)
@lipanski: Got you a PR! 😁
@alex-kattathra-johnson Looks great, thanks.
Released as 1.6.1
The ability to respond with a specific header based on request.