MCPcopy Create free account
hub / github.com/andeya/erpc / postReadCallHeader

Method postReadCallHeader

plugin.go:546–557  ·  view source on GitHub ↗

PostReadCallHeader executes the defined plugins after reading CALL message header.

(ctx ReadCtx)

Source from the content-addressed store, hash-verified

544
545// PostReadCallHeader executes the defined plugins after reading CALL message header.
546func (p *pluginSingleContainer) postReadCallHeader(ctx ReadCtx) *Status {
547 var stat *Status
548 for _, plugin := range p.plugins {
549 if _plugin, ok := plugin.(PostReadCallHeaderPlugin); ok {
550 if stat = _plugin.PostReadCallHeader(ctx); !stat.OK() {
551 Errorf("[PostReadCallHeaderPlugin:%s] %s", plugin.Name(), stat.String())
552 return stat
553 }
554 }
555 }
556 return nil
557}
558
559// PreReadCallBody executes the defined plugins before reading CALL message body.
560func (p *pluginSingleContainer) preReadCallBody(ctx ReadCtx) *Status {

Callers 1

bindCallMethod · 0.80

Calls 4

ErrorfFunction · 0.85
PostReadCallHeaderMethod · 0.65
NameMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected