MCPcopy
hub / github.com/nats-io/nats.go / Respond

Method Respond

micro/request.go:42–42  ·  view source on GitHub ↗

Respond sends the response for the request. Additional headers can be passed using [WithHeaders] option.

([]byte, ...RespondOpt)

Source from the content-addressed store, hash-verified

40 // Respond sends the response for the request.
41 // Additional headers can be passed using [WithHeaders] option.
42 Respond([]byte, ...RespondOpt) error
43
44 // RespondJSON marshals the given response value and responds to the request.
45 // Additional headers can be passed using [WithHeaders] option.

Implementers 1

requestmicro/request.go

Calls

no outgoing calls