IsStreamingContentType returns true for content types that use streaming and must not have their body buffered (gRPC, Connect streaming).
(ct string)
| 550 | // IsStreamingContentType returns true for content types that use streaming |
| 551 | // and must not have their body buffered (gRPC, Connect streaming). |
| 552 | func IsStreamingContentType(ct string) bool { |
| 553 | return strings.HasPrefix(ct, "application/grpc") || |
| 554 | strings.HasPrefix(ct, "application/connect+") |
| 555 | } |
| 556 | |
| 557 | // reset is called automatically before the session is returned to the pool. |
| 558 | // It resets all fields to their null value to prevent leaking data between |