-
- All Implemented Interfaces:
public final class ExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static MediaTypesniffMediaType(HttpURLConnection $self, Function0<ByteArray> bytes, List<String> mediaTypes, List<String> fileExtensions, List<SuspendFunction1<SnifferContext, MediaType>> sniffers)Resolves the format for this HttpURLConnection, with optional extra file extension and media type hints. final static MediaTypesniffMediaType(Response $self, List<String> mediaTypes, List<String> fileExtensions, List<SuspendFunction1<SnifferContext, MediaType>> sniffers)Resolves the format for this Response, with optional extra file extension and media type hints. -
-
Method Detail
-
sniffMediaType
final static MediaType sniffMediaType(HttpURLConnection $self, Function0<ByteArray> bytes, List<String> mediaTypes, List<String> fileExtensions, List<SuspendFunction1<SnifferContext, MediaType>> sniffers)
Resolves the format for this HttpURLConnection, with optional extra file extension and media type hints.
-
sniffMediaType
final static MediaType sniffMediaType(Response $self, List<String> mediaTypes, List<String> fileExtensions, List<SuspendFunction1<SnifferContext, MediaType>> sniffers)
Resolves the format for this Response, with optional extra file extension and media type hints.
-
-
-
-