Skip to content

Conversation

@rahuldevikar
Copy link

#3048)

Summary

  • Allow StreamingResponse to be used with websocket.send_denial_response()
  • Allow FileResponse to be used with websocket.send_denial_response()
  • Add proper ASGI message type prefixes when used in WebSocket context
  • Add comprehensive tests for both response types with denial responses
  • Fixes Can not use send_denial_response with StreamingResponse #3048"

Checklist

  • [c] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • [c] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [c] I've updated the documentation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not use send_denial_response with StreamingResponse

2 participants