googleapis / googleapis/google-cloud-java

[sdk-platform-java] Determine if HttpJson should allow null response back

オープン
#12,518 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
priority: p4 type: cleanup
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

Check if this is the correct flow for GAX HttpJson:
https://github.com/googleapis/gapic-generator-java/blob/5863737238b302c6befd9670f83896be1cf190cb/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonClientCallImpl.java#L345-L346

Currently, a null response will treated as a server error. This may be because we are REST over gRPC and gRPC requires a response in the payload.

The REST world does allow for a null response:
https://stackoverflow.com/questions/46242200/post-with-no-response-body-which-response-code-is-better-201-or-204#:~:text=or%20deleting%20%2D%20204.-,201%20Created,by%20the%20effective%20request%20URI

We should investigate and determine if this is intended/ how we want to keep it.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。