PostReadReplyHeader executes the defined plugins after reading REPLY message header.
(ctx ReadCtx)
| 628 | |
| 629 | // PostReadReplyHeader executes the defined plugins after reading REPLY message header. |
| 630 | func (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. |
| 644 | func (p *pluginSingleContainer) preReadReplyBody(ctx ReadCtx) *Status { |
no test coverage detected