Interface IBinaryResponse
- Namespace
- GoogleMapsApi.Entities.Common
- Assembly
- GoogleMapsApi.dll
Marks a response whose payload is raw bytes rather than JSON. When a response type implements this interface the engine reads the HTTP body as binary and populates Content/ContentType instead of deserializing JSON. Used by endpoints such as the Solar API GeoTIFF download.
public interface IBinaryResponse
Properties
Content
The raw response body bytes.
byte[] Content { get; set; }
Property Value
- byte[]
ContentType
The response's Content-Type media type, if the server supplied one.
string? ContentType { get; set; }