MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / baseMediaType

Function baseMediaType

mcp/streamable.go:568–574  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

566}
567
568func baseMediaType(value string) string {
569 mediaType, _, err := mime.ParseMediaType(value)
570 if err != nil {
571 return ""
572 }
573 return mediaType
574}
575
576// A StreamableServerTransport implements the server side of the MCP streamable
577// transport.

Callers 6

doMethod · 0.85
TestBaseMediaTypeFunction · 0.85
ServeHTTPMethod · 0.85
connectStandaloneSSEMethod · 0.85
WriteMethod · 0.85

Calls

no outgoing calls

Tested by 3

doMethod · 0.68
TestBaseMediaTypeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…