Method
RewriteBody
(ctx context.Context, h *textproto.Header, body buffer.Buffer)
Source from the content-addressed store, hash-verified
| 101 | } |
| 102 | |
| 103 | func (ms modifierState) RewriteBody(ctx context.Context, h *textproto.Header, body buffer.Buffer) error { |
| 104 | if ms.m.BodyErr != nil { |
| 105 | return ms.m.BodyErr |
| 106 | } |
| 107 | |
| 108 | for field := ms.m.AddHdr.Fields(); field.Next(); { |
| 109 | h.Add(field.Key(), field.Value()) |
| 110 | } |
| 111 | return nil |
| 112 | } |
| 113 | |
| 114 | func (ms modifierState) Close() error { |
| 115 | ms.m.UnclosedStates-- |
Callers
nothing calls this directly
Tested by
no test coverage detected