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

希望ok #8421

Open
gghxjava opened this issue May 24, 2024 · 4 comments
Open

希望ok #8421

gghxjava opened this issue May 24, 2024 · 4 comments
Labels
bug Bug in existing code

Comments

@gghxjava
Copy link

Good bug reports include a failing test! Writing a test helps you to isolate and describe the problem, and it helps us to fix it fast. Bug reports without a failing test or reproduction steps are likely to be closed.

Here’s an example test to get you started.
https://gist.github.com/swankjesse/981fcae102f513eb13ed

@gghxjava gghxjava added the bug Bug in existing code label May 24, 2024
@gghxjava
Copy link
Author

希望okhttp的get请求可以携带请求体 ,不然真的很恶心

@Endeavour233
Copy link
Contributor

希望okhttp的get请求可以携带请求体 ,不然真的很恶心

这个不能算bug吧,应该算是想要新加feature。可以把这个关了,另外建个tag是enhancement的issue: permits body in a GET request,然后举一下具体的要用到这个feature的业务场景。

@iseki0
Copy link

iseki0 commented Jun 25, 2024

举一下具体的要用到这个feature的业务场景

比如 ElasticSearch 就有这样的 API,我要是没记错 Solr 也有。

不过这位贴主我看他是不打算搞了···

@GuDaoCoder
Copy link

希望okhttp的get请求可以携带请求体 ,不然真的很恶心

如果确实要通过OkHttp发送带Body的Get请求,可以参考下我这个处理的方式。https://github.com/GuDaoCoder/code-demo/tree/main/okhttp-get-with-body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code
Projects
None yet
Development

No branches or pull requests

4 participants