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