Documentation ¶
Index ¶
- type ResponseWrite
- func (T *ResponseWrite) Flush()
- func (T *ResponseWrite) Header() viot.Header
- func (T *ResponseWrite) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (T *ResponseWrite) HookHijack(client func(net.Conn))
- func (T *ResponseWrite) HookRoundTrip(rr func(*viot.Request) (*viot.Response, error))
- func (T *ResponseWrite) Launch() viot.RoundTripper
- func (T *ResponseWrite) Result() *viot.Response
- func (T *ResponseWrite) RoundTrip(req *viot.Request) (resp *viot.Response, err error)
- func (T *ResponseWrite) RoundTripContext(ctx context.Context, req *viot.Request) (resp *viot.Response, err error)
- func (T *ResponseWrite) SetBody(body interface{}) error
- func (T *ResponseWrite) Status(code int)
- func (T *ResponseWrite) Write(buf []byte) (int, error)
- func (T *ResponseWrite) WriteString(str string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWrite ¶
type ResponseWrite struct { Code int HeaderMap viot.Header Body interface{} // contains filtered or unexported fields }
func (*ResponseWrite) Flush ¶
func (T *ResponseWrite) Flush()
func (*ResponseWrite) Header ¶
func (T *ResponseWrite) Header() viot.Header
func (*ResponseWrite) Hijack ¶
func (T *ResponseWrite) Hijack() (net.Conn, *bufio.ReadWriter, error)
func (*ResponseWrite) HookHijack ¶
func (T *ResponseWrite) HookHijack(client func(net.Conn))
func (*ResponseWrite) HookRoundTrip ¶
func (T *ResponseWrite) HookRoundTrip(rr func(*viot.Request) (*viot.Response, error))
func (*ResponseWrite) Launch ¶
func (T *ResponseWrite) Launch() viot.RoundTripper
func (*ResponseWrite) Result ¶
func (T *ResponseWrite) Result() *viot.Response
func (*ResponseWrite) RoundTrip ¶
func (T *ResponseWrite) RoundTrip(req *viot.Request) (resp *viot.Response, err error)
func (*ResponseWrite) RoundTripContext ¶
func (T *ResponseWrite) RoundTripContext(ctx context.Context, req *viot.Request) (resp *viot.Response, err error)
func (*ResponseWrite) SetBody ¶
func (T *ResponseWrite) SetBody(body interface{}) error
func (*ResponseWrite) Status ¶
func (T *ResponseWrite) Status(code int)
func (*ResponseWrite) WriteString ¶
func (T *ResponseWrite) WriteString(str string) (int, error)
Click to show internal directories.
Click to hide internal directories.