MCPcopy Create free account
hub / github.com/devfeel/dotweb / WriteBlob

Method WriteBlob

context.go:746–752  ·  view source on GitHub ↗

WriteBlob hjiack conn write []byte

(p []byte)

Source from the content-addressed store, hash-verified

744
745// WriteBlob hjiack conn write []byte
746func (hj *HijackConn) WriteBlob(p []byte) (size int, err error) {
747 size, err = hj.ReadWriter.Write(p)
748 if err == nil {
749 hj.ReadWriter.Flush()
750 }
751 return
752}
753
754// SetHeader hjiack conn write header
755func (hj *HijackConn) SetHeader(key, value string) {

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.65
FlushMethod · 0.45

Tested by

no test coverage detected