Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[疑惑]:easyHttp里面怎么请求返回音频流呢 #267

Open
xiongwenzhi opened this issue Jan 3, 2025 · 1 comment
Open

[疑惑]:easyHttp里面怎么请求返回音频流呢 #267

xiongwenzhi opened this issue Jan 3, 2025 · 1 comment
Labels
question Further information is requested

Comments

@xiongwenzhi
Copy link

问题描述【必填】

现在有个接口请求,返回结果是一个音频流,但是不知道如何接收

框架文档是否提及了该问题【必答】

是否已经查阅框架文档但还未能解决的【必答】

issue 列表中是否有人曾提过类似的问题【必答】

是否已经搜索过了 issue 列表但还未能解决的【必答】

@xiongwenzhi xiongwenzhi added the question Further information is requested label Jan 3, 2025
@getActivity
Copy link
Owner

有两种办法:

  1. 发起下载请求,直接下载文件
  2. 发起普通请求,将泛型指定为 InputStream 类型,但是前提是得在 RequestHandler 中有对该类型进行处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants