Source file src/net/http/omithttp2server.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build nethttpomithttp2 || nethttpomithttp2server
     6  
     7  package http
     8  
     9  import (
    10  	"context"
    11  	"net"
    12  )
    13  
    14  // omitHTTP2Server is true when the nethttpomithttp2 or
    15  // nethttpomithttp2server build tag is set, which means http2server.go
    16  // isn't compiled in and we shouldn't try to use it.
    17  const omitHTTP2Server = true
    18  
    19  func (s *Server) configureHTTP2()                               {}
    20  func (s *Server) setHTTP2Config(conf http2ExternalServerConfig) {}
    21  func (s *Server) serveHTTP2Conn(ctx context.Context, nc net.Conn, h Handler, sawClientPreface bool, upgradeReq *Request, settings []byte, onClose func()) {
    22  }
    23  
    24  type http2Server struct{}
    25  type http2ExternalServerConfig interface {
    26  	unimplementable()
    27  }
    28  

View as plain text