This change modifies the media type matching to handle vendor-specific media types in addition to the standardized or well-known media types for JSON and YAML.
It additionally moves the HTTP handler out of the main server function and into its own variable, which we can then use *httptest.ResponseRecorder to test against.
This change modifies the media type matching to handle vendor-specific media types in addition to the standardized or well-known media types for JSON and YAML.
It additionally moves the HTTP handler out of the main server function and into its own variable, which we can then use
*httptest.ResponseRecorder
to test against.