Skip to content

HTTP/gRPC callouts: reuse existing callbacks #66

Open

Description

@PiotrSikora

Once we start passing resource IDs in hostcalls (#59), we should be able to use existing proxy_on_response_headers, proxy_on_response_body, and proxy_on_response_trailers instead of proxy_on_http_call_response.

Activity

  1. added this to the v0.3.0 milestone on May 28, 2026
  2. leonm1 commented on May 28, 2026

    @leonm1
    Contributor

    @PiotrSikora I added this to v0.3.0, since we probably want to make this change now since it'd be a breaking change in the ABI.

  3. PiotrSikora commented on Jun 4, 2026

    @PiotrSikora
    MemberAuthor

    It doesn't have to be a breaking change, but it's an interesting case, and I was thinking about it in the past when considering adding host features negotiation/confirmation (via proxy_get_host_features), since it's an actual change in behavior.

    If we wanted to ship this as a host feature without any negotiation or confirmation from the plugin, and we wanted to reuse the existing proxy_http_call hostcall, then a plugin without support for this host feature would either malfunction or crash upon receiving response via proxy_on_response_headers from the host.

    However, this could be easily solved by providing a new hostcall, use of which would imply support for this host feature, and it wouldn't be a breaking change then.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions