respx icon indicating copy to clipboard operation
respx copied to clipboard

feat: pass is_async to handler to return correct type of stream response

Open yihuang opened this issue 9 months ago • 1 comments

Otherwise, it's impossible to create generic stream response for the same endpoint for both sync and async cases.

ref: https://github.com/lundberg/respx/issues/156#issuecomment-2747949401

yihuang avatar Mar 24 '25 12:03 yihuang

Looks like a usable feature, will take a look, thanks

lundberg avatar Apr 28 '25 14:04 lundberg