public struct Image : HttpBody, Hashable
The image HTTP body can be used to attach an image to a request. Currently, only PNG and JPEG images are supported. When adding the image’s data to the body of the request, this body also sets the “Content-Type” header to the appropriate MIME type as well as the “Content-Length” header to the size of the image in bytes.
Initializes a new HTTP image body.
public init(_ mime: HttpMimeType, data: Data)
The MIME type of the image, i.e. of the given data.
The image’s data to set as the request’s body.