Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerError ¶ added in v1.373.1
ServerError returns nil if the err http.ErrServerClosed.
func Transport ¶ added in v1.237.0
func Transport(cfg *tls.Config) http.RoundTripper
Transport for HTTP.
func WriteError ¶ added in v1.240.0
WriteError for http.
func WriteResponse ¶ added in v1.373.1
func WriteResponse(ctx context.Context, res http.ResponseWriter, b []byte)
WriteResponse handles the error and adds it to the context with meta.WithAttribute.
Types ¶
type Server ¶ added in v1.164.0
type Server struct {
// contains filtered or unexported fields
}
Server for HTTP.
Click to show internal directories.
Click to hide internal directories.