Home / Type/ ResponseWriter Type — gin Architecture

ResponseWriter Type — gin Architecture

Architecture documentation for the ResponseWriter type/interface in response_writer.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  d2cd27ff_6d57_0cfd_a3ff_41dc29b8ca5b["ResponseWriter"]
  064447d4_a1df_c2b3_6b83_369a76c9feb9["response_writer.go"]
  d2cd27ff_6d57_0cfd_a3ff_41dc29b8ca5b -->|defined in| 064447d4_a1df_c2b3_6b83_369a76c9feb9
  style d2cd27ff_6d57_0cfd_a3ff_41dc29b8ca5b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

response_writer.go lines 23–47

type ResponseWriter interface {
	http.ResponseWriter
	http.Hijacker
	http.Flusher
	http.CloseNotifier

	// Status returns the HTTP response status code of the current request.
	Status() int

	// Size returns the number of bytes already written into the response http body.
	// See Written()
	Size() int

	// WriteString writes the string into the response body.
	WriteString(string) (int, error)

	// Written returns true if the response body was already written.
	Written() bool

	// WriteHeaderNow forces to write the http header (status code + headers).
	WriteHeaderNow()

	// Pusher get the http.Pusher for server push
	Pusher() http.Pusher
}

Defined In

Frequently Asked Questions

What is the ResponseWriter type?
ResponseWriter is a type/interface in the gin codebase, defined in response_writer.go.
Where is ResponseWriter defined?
ResponseWriter is defined in response_writer.go at line 23.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free