Versions in this module Expand all Collapse all v3 v3.0.2 Aug 30, 2022 v3.0.1 Aug 29, 2022 Changes in this version + func BrokenConnectionHandler() http.Handler + func ClientFromHandler(handler http.Handler) *http.Client + func HandlerForMethod(method string, handlerForMethod http.Handler, defaultHandler http.Handler) http.Handler + func HandlerForPath(path string, handlerForPath http.Handler, defaultHandler http.Handler) http.Handler + func HandlerForPathRegex(pathRegex string, handlerForPath http.Handler, defaultHandler http.Handler) http.Handler + func HandlerWithJSONResponse(contentToEncode interface{}, additionalHeaders http.Header) http.Handler + func HandlerWithResponse(status int, headers http.Header, body []byte) http.Handler + func HandlerWithStatus(status int) http.Handler + func MakeSelfSignedCert(certFilePath, keyFilePath string) error + func MakeServerWithCert(certFilePath, keyFilePath string, handler http.Handler) (*httptest.Server, error) + func RecordingHandler(delegateToHandler http.Handler) (http.Handler, <-chan HTTPRequestInfo) + func SequentialHandler(firstHandler http.Handler, remainingHandlers ...http.Handler) http.Handler + func WithSelfSignedServer(handler http.Handler, action func(*httptest.Server, []byte, *x509.CertPool)) + func WithServer(handler http.Handler, action func(*httptest.Server)) + type DelegatingHandler struct + Handler http.Handler + func (d *DelegatingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type HTTPRequestInfo struct + Body []byte + Request *http.Request + type SSEEvent struct + Data string + Event string + ID string + RetryMillis int + func (e SSEEvent) Bytes() []byte + type SSEStreamControl interface + Close func() error + EndAll func() + Enqueue func(event SSEEvent) + EnqueueComment func(comment string) + Send func(event SSEEvent) + SendComment func(comment string) + func SSEHandler(initialEvent *SSEEvent) (http.Handler, SSEStreamControl) + type StreamControl interface + Close func() error + EndAll func() + Enqueue func(data []byte) + Send func(data []byte) + func ChunkedStreamingHandler(initialChunk []byte, contentType string) (http.Handler, StreamControl) Other modules containing this package github.com/launchdarkly/go-test-helpers github.com/launchdarkly/go-test-helpers/v2