Copy the kept call's ask id from its request header into the call's _meta as mesh/ask
Every tool call and seat verb the tool runner serves hands the bundle the ask id the kept call set in the header x-ask (stdio.AskHeader) under _meta mesh/ask (stdio.MetaAsk), beside mesh/call; a call whose header carries none names none. Builds: design 47 H2 §775, H-A-351
This commit is contained in:
@@ -106,8 +106,9 @@ func callerOn(pattern, subject string) string {
|
||||
return UserOfToken(subject[dot+1:])
|
||||
}
|
||||
|
||||
// CalledHandler answers one call, told who called: the bus user the subject named, or "" when it named none.
|
||||
type CalledHandler func(caller string, body json.RawMessage) (any, error)
|
||||
// CalledHandler answers one call, told who called: the bus user the subject named, or "" when it named none; and the ask id the
|
||||
// call carried in its request header stdio.AskHeader, or "" (design 47 H2 §775, H-A-351).
|
||||
type CalledHandler func(caller, ask string, body json.RawMessage) (any, error)
|
||||
|
||||
// callers is what a connection keeps of its caller-named calls: those in flight, by subject, so a refused
|
||||
// publish ends its call at once instead of after RequestTimeout.
|
||||
|
||||
Reference in New Issue
Block a user