(wrt http.ResponseWriter, msg any)
| 89 | } |
| 90 | |
| 91 | func lpWrite(wrt http.ResponseWriter, msg any) error { |
| 92 | // This will panic if msg is not []byte. This is intentional. |
| 93 | wrt.Write(msg.([]byte)) |
| 94 | return nil |
| 95 | } |
| 96 | |
| 97 | func (sess *Session) readOnce(wrt http.ResponseWriter, req *http.Request) (int, error) { |
| 98 | if req.ContentLength > globals.maxMessageSize { |
no test coverage detected
searching dependent graphs…