Documentation
¶
Overview ¶
nolint: mnd
Index ¶
- func NewBodyWrapper(body io.ReadCloser) io.ReadCloser
- func NewResponseWrapper(responseWriter http.ResponseWriter) http.ResponseWriter
- type BodyWrapper
- type Wrapper
- func (r *Wrapper) Flush()
- func (r *Wrapper) GetRequestContext() context.Context
- func (r *Wrapper) Header() http.Header
- func (r *Wrapper) NumBytes() int64
- func (r *Wrapper) RealResponseWriter() http.ResponseWriter
- func (r *Wrapper) SetRequestContext(ctx context.Context)
- func (r *Wrapper) SpanStatus() (codes.Code, string)
- func (r *Wrapper) StatusCode() int
- func (r *Wrapper) Write(p []byte) (int, error)
- func (r *Wrapper) WriteHeader(statusCode int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBodyWrapper ¶
func NewBodyWrapper(body io.ReadCloser) io.ReadCloser
func NewResponseWrapper ¶
func NewResponseWrapper(responseWriter http.ResponseWriter) http.ResponseWriter
Types ¶
type BodyWrapper ¶
type BodyWrapper struct {
// contains filtered or unexported fields
}
func (*BodyWrapper) Close ¶
func (bw *BodyWrapper) Close() error
func (*BodyWrapper) NumBytes ¶
func (bw *BodyWrapper) NumBytes() int64
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func (*Wrapper) GetRequestContext ¶
func (*Wrapper) RealResponseWriter ¶
func (r *Wrapper) RealResponseWriter() http.ResponseWriter
func (*Wrapper) SetRequestContext ¶
func (*Wrapper) StatusCode ¶
func (*Wrapper) WriteHeader ¶
Click to show internal directories.
Click to hide internal directories.