MethodFromServerStream returns the method string for the input stream. The returned string is in the format of "/service/method".
(stream ServerStream)
| 1876 | // MethodFromServerStream returns the method string for the input stream. |
| 1877 | // The returned string is in the format of "/service/method". |
| 1878 | func MethodFromServerStream(stream ServerStream) (string, bool) { |
| 1879 | return Method(stream.Context()) |
| 1880 | } |
| 1881 | |
| 1882 | // prepareMsg returns the hdr, payload and data using the compressors passed or |
| 1883 | // using the passed preparedmsg. The returned boolean indicates whether |