WithFileSize sets the file size to serve.
(size int64)
| 59 | |
| 60 | // WithFileSize sets the file size to serve. |
| 61 | func WithFileSize(size int64) MockServerOption { |
| 62 | return func(m *MockServer) { |
| 63 | m.FileSize = size |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // WithRangeSupport enables or disables Range request support. |
| 68 | func WithRangeSupport(enabled bool) MockServerOption { |
no outgoing calls