home.social

#contentnegotiation — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #contentnegotiation, aggregated by home.social.

fetched live
  1. > Not being content with alienating only the general purpose #JSON #API enthusiasts, let me now proceed to also alienate my erstwhile #hypermedia enthusiast allies by saying:

    > I don’t think #contentNegotiation is typically the right approach to returning both JSON and #HTML for most applications.

    htmx.org/essays/why-tend-not-t

    #webDev #javaScript #REST #htmx #http

  2. Week 2 of our #kg2023 #OpenHPI MOOC course starts with the problem of How to identify and access Things (on the Web). Alas, the old trick with the apple comes into play. Watch our little performance in the video (Kudos to @sashabruns
    video lecture: open.hpi.de/courses/knowledgeg
    #IRIs #semanticweb #designator #designatum #http #contentnegotiation
    @tabea @fizise @enorouzi @heikef #MOOC #lecture @fiz_karlsruhe

  3. I don't understand Mastodon's content negotiation. This...

    curl -v --header 'Accept: application/activity+json, */*;q=0.1' mastodon.social/@Gargron/10937

    ...returns a text/html response, but this...

    curl -v --header 'Accept: application/activity+json' mastodon.social/@Gargron/10937

    ...returns an application/activity+json response.

    With that `q=0.1`, in the first requests's Accept header, `application/activity+json` should have been the highest priority, so why isn't that what was returned?

    #Mastodon #ActivityPub #ContentNegotiation

  4. Why I Consistently Reach for Server-Driven Content Negotiation (For Versioning)

    Why I use server-driven content negotiation for APIs to allow for versioning and allowing different representations of APIs.

    fed.brid.gy/r/https://www.jvt.

  5. Does anyone know why there is no way, in #Apache HTTP server using MultiViews, to have a generic typemap for *all* files, without having to enumerate them in the .var file? (Use case: I want to send PNG rather than PDF when both are available and the client sends Accept: */*.)

    httpd.apache.org/docs/2.4/cont

    #ContentNegotiation