mirror of https://github.com/grpc/grpc-java.git
ServerCall already had "headers must be sent before any messages, which must be sent before closing," but the implementation did not enforce it and our async server handler didn't obey. The benefit of forcing sending headers first is that it removes the only implicit call in our API and interceptors dealing just with metadata don't need to override sendMessage. The implicit behavior was bug-prone since it wasn't obvious you were forgetting that headers may not be sent. |
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle | ||