Skip to content

Consider adding Accept-Post and Accept-Put #935

Closed

Description

@RubenVerborgh
No description provided.

Activity

  1. RubenVerborgh commented on Nov 14, 2018

    @RubenVerborgh
    ContributorAuthor

    Given #934 (comment), does not depend on auth status.

  2. dmitrizagidulin commented on Nov 14, 2018

    @dmitrizagidulin
    Contributor

    Is this not already handled by the WAC-Allow: header?

  3. dmitrizagidulin commented on Nov 14, 2018

    @dmitrizagidulin
    Contributor

    Ahh, ok, got it.

  4. namedgraph commented on Dec 8, 2018

    @namedgraph

    What's the rationale for more non-standard headers when plain Accept is enough?

  5. csarven commented on Dec 8, 2018

    @csarven
    Member

    @namedgraph FYI, this issue was derived from #931 . Usually leaving some provenance helps future readers.

    Accept is too broad in context of OPTIONS. Not to mention that it'll probably interpreted for the OPTIONS itself.

    For each method, it is useful to distinguish between acceptable mimetypes. Unless a server is capable of handling the same values for each allowed method, then sure, Accept alone would be sufficient, in theory. Even then, I don't think that's a good idea. There is also no evidence that a LD server that Accepts text/html is going to take on a PATCH with text/html - just to take an example. Take my word for it ;)

    There is sufficient "standard" talk re Accept-Post and Accept-Patch. Accept-Put doesn't ( also mentioned in #931 (comment) ). It doesn't matter. Just implement something that's sufficiently aligned with other stuff - consider it as incubation - and then bump it up to standards given that there was some experimentation and experience.

  6. namedgraph commented on Dec 20, 2018

    @namedgraph

    @csarven so in what situations should Accept-Post and Accept-Patch be sent? With every response?
    We support all the serializations that Jena supports, so that becomes an extensive list:

    Accept-Put: application/rdf+xml,application/n-quads,text/rdf+n3,application/n-triples,text/csv,application/ld+json,application/rdf+xml,application/rdf+thrift,text/turtle,application/rdf+json,text/trig
    Accept-Post: application/rdf+xml,application/n-quads,text/rdf+n3,application/n-triples,text/csv,application/ld+json,application/rdf+xml,application/rdf+thrift,text/turtle,application/rdf+json,text/trig
    

    That's quite an overhead to send with every response, don't you think? But I guess we can live with that.

  7. kjetilk commented on Dec 20, 2018

    @kjetilk
    Member

    I think we should start using RDF more, so that we can have in-band semantics... :-) Perhaps a .controls resource or something. This isn't my primary use case for it, but headers are starting to get pretty verbose.

  8. csarven commented on Dec 20, 2018

    @csarven
    Member

    @namedgraph Why every response? Send only when responding to OPTIONS.

  9. namedgraph commented on Dec 20, 2018

    @namedgraph

    @kjetilk not so simple. First you would need semantics of what .controls means and how it is discoverable.

  10. csarven commented on Oct 12, 2024

    @csarven
    Member

    AFAICT, this issue is resolved at the very least by PR: #1754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions