type net/http/httptest.Server
18 uses
net/http/httptest (current package)
server.go#L26: type Server struct {
server.go#L103: func NewServer(handler http.Handler) *Server {
server.go#L115: func NewUnstartedServer(handler http.Handler) *Server {
server.go#L116: return &Server{
server.go#L123: func (s *Server) Start() {
server.go#L140: func (s *Server) StartTLS() {
server.go#L188: func NewTLSServer(handler http.Handler) *Server {
server.go#L200: func (s *Server) Close() {
server.go#L252: func (s *Server) logCloseHangDebugInfo() {
server.go#L264: func (s *Server) CloseClientConnections() {
server.go#L293: func (s *Server) Certificate() *x509.Certificate {
server.go#L300: func (s *Server) Client() *http.Client {
server.go#L304: func (s *Server) goServe() {
server.go#L314: func (s *Server) wrap() {
server.go#L364: func (s *Server) closeConn(c net.Conn) { s.closeConnChan(c, nil) }
server.go#L368: func (s *Server) closeConnChan(c net.Conn, done chan<- struct{}) {
server.go#L378: func (s *Server) forgetConn(c net.Conn) {
golang.org/x/pkgsite/internal/testing/testhelper
testhelper.go#L56: func SetupTestClientAndServer(handler http.Handler) (*http.Client, *httptest.Server, func()) {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |