Skip to content

Preserve media type params in conneg #13

@alexanderkiel

Description

@alexanderkiel

Currently in 0.6.0, media types from the accept header and :available-media-types are stripped down to pairs like ["text" "html"]. That pairs are used to compare acceptable types and so on.

I need to be able to specify media types with params like application/json;profile="urn:org.restfulobjects:homepage" in :available-media-types because that is my content type of the representation I like to return. You can find such media types in the Restful Objects Spec.

I already looked into the liberator.conneg namespace. But this wouldn't be a small patch. I think the namespace would benefit from a MediaType protocol and record. But I like to discuss this first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions