blob: 87472fa1f2918d581cce8d8fbbe7a3d11002ee3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package roadrunner
// Payload carries binary header and body to workers and
// back to the server.
type Payload struct {
// Context represent payload context, might be omitted.
Context []byte
// body contains binary payload to be processed by worker.
Body []byte
// todo: io.Reader support for streamed requests and responses.
}
// String returns payload body as string
func (p *Payload) String() string {
return string(p.Body)
}
|