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

Method postReadReplyHeader

plugin.go:630–641  ·  view source on GitHub ↗

PostReadReplyHeader executes the defined plugins after reading REPLY message header.

(ctx ReadCtx)

Source from the content-addressed store, hash-verified

628
629// PostReadReplyHeader executes the defined plugins after reading REPLY message header.
630func (p *pluginSingleContainer) postReadReplyHeader(ctx ReadCtx) *Status {
631 var stat *Status
632 for _, plugin := range p.plugins {
633 if _plugin, ok := plugin.(PostReadReplyHeaderPlugin); ok {
634 if stat = _plugin.PostReadReplyHeader(ctx); !stat.OK() {
635 Errorf("[PostReadReplyHeaderPlugin:%s] %s", plugin.Name(), stat.String())
636 return stat
637 }
638 }
639 }
640 return nil
641}
642
643// PreReadReplyBody executes the defined plugins before reading REPLY message body.
644func (p *pluginSingleContainer) preReadReplyBody(ctx ReadCtx) *Status {

Callers 1

bindReplyMethod · 0.80

Calls 4

ErrorfFunction · 0.85
PostReadReplyHeaderMethod · 0.65
NameMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected