MCPcopy
hub / github.com/rclone/rclone / WithMimeType

Method WithMimeType

fs/object/object.go:219–222  ·  view source on GitHub ↗

WithMimeType adds mimeType to the MemoryObject

(mimeType string)

Source from the content-addressed store, hash-verified

217
218// WithMimeType adds mimeType to the MemoryObject
219func (o *MemoryObject) WithMimeType(mimeType string) *MemoryObject {
220 o.mimeType = mimeType
221 return o
222}
223
224// Content returns the underlying buffer
225func (o *MemoryObject) Content() []byte {

Callers 4

TestMemoryObjectFunction · 0.95
testMetadataPathsMethod · 0.45
TestObjectHEADMetadataFunction · 0.45
PutTestContentsMetadataFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestMemoryObjectFunction · 0.76
testMetadataPathsMethod · 0.36
TestObjectHEADMetadataFunction · 0.36