MCPcopy
hub / github.com/SurgeDM/Surge / WithRangeSupport

Function WithRangeSupport

internal/testutil/mock_server.go:68–72  ·  view source on GitHub ↗

WithRangeSupport enables or disables Range request support.

(enabled bool)

Source from the content-addressed store, hash-verified

66
67// WithRangeSupport enables or disables Range request support.
68func WithRangeSupport(enabled bool) MockServerOption {
69 return func(m *MockServer) {
70 m.SupportsRanges = enabled
71 }
72}
73
74// WithContentType sets the Content-Type header.
75func WithContentType(ct string) MockServerOption {

Calls

no outgoing calls