/
web_inout_hweb.go
84 lines (74 loc) · 1.66 KB
/
web_inout_hweb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Copyright (c) 2020-2023 Zhang Jingcheng <diogin@gmail.com>.
// Copyright (c) 2022-2023 HexInfra Co., Ltd.
// All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE.md file.
// HWEB incoming message and outgoing message implementation.
package internal
func (r *webIn_) readContentH() (p []byte, err error) {
return
}
func (r *webOut_) addHeaderH(name []byte, value []byte) bool {
// TODO
return false
}
func (r *webOut_) headerH(name []byte) (value []byte, ok bool) {
// TODO
return
}
func (r *webOut_) hasHeaderH(name []byte) bool {
// TODO
return false
}
func (r *webOut_) delHeaderH(name []byte) (deleted bool) {
// TODO
return false
}
func (r *webOut_) delHeaderAtH(o uint8) {
// TODO
}
func (r *webOut_) sendChainH() error {
return nil
}
func (r *webOut_) echoHeadersH() error {
// TODO
return nil
}
func (r *webOut_) echoChainH() error {
// TODO
return nil
}
func (r *webOut_) addTrailerH(name []byte, value []byte) bool {
// TODO
return false
}
func (r *webOut_) trailerH(name []byte) (value []byte, ok bool) {
// TODO
return
}
func (r *webOut_) trailersH() []byte {
// TODO
return nil
}
func (r *webOut_) passBytesH(p []byte) error { return r.writeBytesH(p) }
func (r *webOut_) finalizeUnsizedH() error {
// TODO
if r.nTrailers == 1 { // no trailers
} else { // with trailers
}
return nil
}
func (r *webOut_) writeHeadersH() error { // used by echo and pass
// TODO
return nil
}
func (r *webOut_) writePieceH(piece *Piece, unsized bool) error {
// TODO
return nil
}
func (r *webOut_) writeBytesH(p []byte) error {
// TODO
return nil
}
func (r *webOut_) writeVectorH() error {
return nil
}