Skip to content

Allow client to specify metadata per call #190

Closed
@cvanderschuere

Description

@cvanderschuere

Currently the client is only able to modify the metadata at the service level, but metadata is meant to be per-call.

println("/// Asynchronous. Unary.")
println("\(access) func \(methodFunctionName)(_ request: \(methodInputName), completion: @escaping (\(methodOutputName)?, CallResult) -> Void) throws -> \(callName) {")
indent()
println("return try \(callName)Base(channel)")
indent()
println(".start(request: request, metadata: metadata, completion: completion)")

Changes:

  • Allow an optional metadata to be passed per call
  • Add merge to Metadata
  • Merge service metadata and call metadata on call.start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions