Interface IInlineHttpInvoker

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

Optional capability surface for protocol plugins that can dispatch a generic BowireMethodInfo as an HTTP request — i.e. plugins that know how to bucket fields by their Source (path / query / header / body), substitute path placeholders, build a request body, and parse the response.

The REST plugin implements this so that the gRPC plugin's HTTP-transcoding discovery (which produces BowireMethodInfo instances with HttpMethod + HttpPath set) can be invoked over HTTP without core taking on any HTTP-specific dependencies. If a Bowire build doesn't include the REST plugin, FindHttpInvoker() returns null and the /api/invoke endpoint refuses HTTP transcoding requests with a clear error.

public interface IInlineHttpInvoker

Methods

InvokeHttpAsync(string, BowireMethodInfo, List<string>, Dictionary<string, string>?, CancellationToken)

Sends a single HTTP request derived from the supplied method info and returns the response in the same shape as InvokeAsync(string, string, string, List<string>, bool, Dictionary<string, string>?, CancellationToken).

Task<InvokeResult> InvokeHttpAsync(string serverUrl, BowireMethodInfo methodInfo, List<string> jsonMessages, Dictionary<string, string>? metadata, CancellationToken ct = default)

Parameters

serverUrl string
methodInfo BowireMethodInfo
jsonMessages List<string>
metadata Dictionary<string, string>
ct CancellationToken

Returns

Task<InvokeResult>