MCPcopy
hub / github.com/gin-gonic/gin / ResponseWriter

Interface ResponseWriter

response_writer.go:23–47  ·  response_writer.go::ResponseWriter

ResponseWriter ...

Source from the content-addressed store, hash-verified

21
22// ResponseWriter ...
23type ResponseWriter interface {
24 http.ResponseWriter
25 http.Hijacker
26 http.Flusher
27 http.CloseNotifier
28
29 // Status returns the HTTP response status code of the current request.
30 Status() int
31
32 // Size returns the number of bytes already written into the response http body.
33 // See Written()
34 Size() int
35
36 // WriteString writes the string into the response body.
37 WriteString(string) (int, error)
38
39 // Written returns true if the response body was already written.
40 Written() bool
41
42 // WriteHeaderNow forces to write the http header (status code + headers).
43 WriteHeaderNow()
44
45 // Pusher get the http.Pusher for server push
46 Pusher() http.Pusher
47}
48
49type responseWriter struct {
50 http.ResponseWriter

Implementers 1

responseWriterresponse_writer.go

Calls

no outgoing calls

Tested by

no test coverage detected