Inspectopedia Help

GRPC request schema can be substituted or omitted

Reports unnecessary `grpc` or standard `http[s]` schemas usage in gRPC requests

Example requests:

# `grpc` schema may be omitted since insecure connection is assumed by default GRPC grpc://localhost/TestService/testRpc
# `http` schema may be omitted: prefer empty schema for insecure connection and a dedicated `grpcs` schema for a secure one GRPC http://localhost/TestService/testRpc
# `https` schema should be replaced by `grpcs`: prefer a dedicated `grpcs` schema to indicate that transport layer security should be enabled to execute the request GRPC https://localhost/TestService/testRpc

To avoid confusion, it is recommended to use dedicated `grpcs` schema in a gRPC request, when the request should use secure channel underneath. Otherwise, the schema might be completely omitted

Inspection Details

Available in:

GoLand 2023.3, IntelliJ IDEA 2023.3, Qodana for JVM 2023.3



Last modified: 13 July 2023