From f4aa09a3f46776a3b423f93916509629ec8a54a3 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Wed, 19 Jun 2024 09:47:18 -0400 Subject: [PATCH] scalafix --- .../zio/http/tools/GenerateMediaTypes.scala | 82 ++---- .../src/main/scala/zio/http/MediaTypes.scala | 239 +++++++++--------- 2 files changed, 148 insertions(+), 173 deletions(-) diff --git a/zio-http-tools/src/main/scala/zio/http/tools/GenerateMediaTypes.scala b/zio-http-tools/src/main/scala/zio/http/tools/GenerateMediaTypes.scala index 39fae8d846..c6bee4f001 100644 --- a/zio-http-tools/src/main/scala/zio/http/tools/GenerateMediaTypes.scala +++ b/zio-http-tools/src/main/scala/zio/http/tools/GenerateMediaTypes.scala @@ -1,8 +1,9 @@ package zio.http.tools +import scala.io.Source + import zio._ import zio.json._ -import scala.io.Source ///////////////////////// // READING AND PARSING // @@ -28,16 +29,14 @@ case class MimeDb(mimeTypes: Map[String, MimeType]) extends AnyVal { object MimeDb { implicit val decoder: JsonDecoder[MimeDb] = JsonDecoder.map[String, MimeType].map(MimeDb(_)) - // lazy val `event-stream`: MediaType = new MediaType("text", "event-stream", Compressible, NotBinary) + // These types are not in the mime-db json val extraTypes = Map( "text/event-stream" -> MimeType(None, None, Some(true), None), ) - /** - * Fetches the MIME types database from the jshttp/mime-db repository and - * returns a MimeDb object - */ - def fetch = { + // Fetches the MIME types database from the jshttp/mime-db repository and + // returns a MimeDb object + def fetch: Task[MimeDb] = ZIO.attemptBlocking { val url = "https://raw.githubusercontent.com/jshttp/mime-db/master/db.json" val source = Source.fromURL(url) @@ -80,23 +79,17 @@ case class MediaTypeInfo( ) { def binary: Boolean = { - // If the main type is "image", "video", "audio", or "application" (excluding text-based applications), it is likely binary. + // If the main type is "image", "video", "audio", or "application", it is likely binary. // Additionally, if the MIME type is not compressible, it is likely binary. mainType match { - case "image" | "video" | "audio" => true + case "image" | "video" | "audio" | "font" | "model" | "multipart" => true case "application" => !subType.startsWith("xml") && !subType.endsWith("json") && !subType.endsWith("javascript") + case "text" => false case _ => !compressible } } - /** - * Renders the media type info as a Scala code snippet - * - * {{{ - * lazy val `${subType}`: MediaType = - * new MediaType("$mainType", "$subType", compressible = $compressible$extensionsString) - * }}} - */ + // Renders the media type info as a Scala code snippet def render: String = { val extensionsString = if (extensions.isEmpty) "" @@ -118,16 +111,7 @@ object MediaTypeInfo { } } -/** - * Renders a group of media types as a Scala code snippet - * - * {{{ - * object { - * - * lazy val all: List[MediaType] = List() - * lazy val any: MediaType = new MediaType("$mainType", "*") - * }}} - */ +// Renders a group of media types as a Scala code snippet case class MediaTypeGroup( mainType: String, subTypes: List[MediaTypeInfo], @@ -145,36 +129,24 @@ object ${RenderUtils.snakeCase(mainType)} { } object GenerateMediaTypes extends ZIOAppDefault { - val run = { - val mediaTypes = MediaTypeInfo.fromMimeDb(MimeDb.fetch) - val mediaTypeGroups = - mediaTypes - .groupBy(_.mainType) - .map { case (mainType, subTypes) => - MediaTypeGroup(mainType, subTypes) - } - .toList - - val file = MediaTypeFile(mediaTypeGroups) - val mediaTypesPath = "../zio-http/shared/src/main/scala/zio/http/MediaTypes.scala" - ZIO.writeFile(mediaTypesPath, file.render) - } + val run = + for { + mimeDb <- MimeDb.fetch + mediaTypes = MediaTypeInfo.fromMimeDb(mimeDb) + mediaTypeGroups = + mediaTypes + .groupBy(_.mainType) + .map { case (mainType, subTypes) => + MediaTypeGroup(mainType, subTypes) + } + .toList + file = MediaTypeFile(mediaTypeGroups) + mediaTypesPath = "../zio-http/shared/src/main/scala/zio/http/MediaTypes.scala" + _ <- ZIO.writeFile(mediaTypesPath, file.render) + } yield () } -/** - * Renders a list of media type groups as a Scala code snippet - * - * {{{ - * package zio.http - * - * private[zio] trait MediaTypesGenerated { - * lazy val allMediaTypes: List[MediaType] = - * group_1.all ++ group_2.all ++ group_3.all - * lazy val any: MediaType = new MediaType("*", "*") - * - * - * }}} - */ +// Renders a list of media type groups as a Scala code snippet case class MediaTypeFile( groups: List[MediaTypeGroup], ) { diff --git a/zio-http/shared/src/main/scala/zio/http/MediaTypes.scala b/zio-http/shared/src/main/scala/zio/http/MediaTypes.scala index 964d54dc2b..f9fa13ef35 100644 --- a/zio-http/shared/src/main/scala/zio/http/MediaTypes.scala +++ b/zio-http/shared/src/main/scala/zio/http/MediaTypes.scala @@ -1,12 +1,9 @@ -// HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY -// HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY -// HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY -// HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY HEY +// ⚠️ HEY YOU! IMPORTANT MESSAGE ⚠️ +// ============================== // -// THIS FILE IS GENERATED BY `GenerateMediaTypes.scala` -// So don't go editing it now, you hear? Otherwise your -// changes will be overwritten the next time someone runs -// sbt generateMediaTypes. +// THIS FILE IS AUTOMATICALLY GENERATED BY `GenerateMediaTypes.scala` +// So don't go editing it now, you hear? Otherwise your changes will +// be overwritten the next time someone runs `sbt generateMediaTypes` package zio.http @@ -7698,7 +7695,7 @@ private[zio] trait MediaTypes { new MediaType("model", "mtl", compressible = false, binary = true, List("mtl")) lazy val `vnd.collada+xml`: MediaType = - new MediaType("model", "vnd.collada+xml", compressible = true, binary = false, List("dae")) + new MediaType("model", "vnd.collada+xml", compressible = true, binary = true, List("dae")) lazy val `vnd.vtu`: MediaType = new MediaType("model", "vnd.vtu", compressible = false, binary = true, List("vtu")) @@ -7713,10 +7710,10 @@ private[zio] trait MediaTypes { new MediaType("model", "vnd.opengex", compressible = false, binary = true, List("ogex")) lazy val `step+xml`: MediaType = - new MediaType("model", "step+xml", compressible = true, binary = false, List("stpx")) + new MediaType("model", "step+xml", compressible = true, binary = true, List("stpx")) lazy val `vnd.moml+xml`: MediaType = - new MediaType("model", "vnd.moml+xml", compressible = true, binary = false) + new MediaType("model", "vnd.moml+xml", compressible = true, binary = true) lazy val `vrml`: MediaType = new MediaType("model", "vrml", compressible = false, binary = true, List("wrl", "vrml")) @@ -7743,7 +7740,7 @@ private[zio] trait MediaTypes { new MediaType("model", "vnd.sap.vds", compressible = false, binary = true, List("vds")) lazy val `x3d+xml`: MediaType = - new MediaType("model", "x3d+xml", compressible = true, binary = false, List("x3d", "x3dz")) + new MediaType("model", "x3d+xml", compressible = true, binary = true, List("x3d", "x3dz")) lazy val `vnd.gs.gdl`: MediaType = new MediaType("model", "vnd.gs.gdl", compressible = false, binary = true) @@ -7761,7 +7758,7 @@ private[zio] trait MediaTypes { new MediaType("model", "step", compressible = false, binary = true) lazy val `gltf-binary`: MediaType = - new MediaType("model", "gltf-binary", compressible = true, binary = false, List("glb")) + new MediaType("model", "gltf-binary", compressible = true, binary = true, List("glb")) lazy val `stl`: MediaType = new MediaType("model", "stl", compressible = false, binary = true, List("stl")) @@ -7773,7 +7770,7 @@ private[zio] trait MediaTypes { new MediaType("model", "step-xml+zip", compressible = false, binary = true, List("stpxz")) lazy val `gltf+json`: MediaType = - new MediaType("model", "gltf+json", compressible = true, binary = false, List("gltf")) + new MediaType("model", "gltf+json", compressible = true, binary = true, List("gltf")) lazy val `e57`: MediaType = new MediaType("model", "e57", compressible = false, binary = true) @@ -8257,43 +8254,43 @@ private[zio] trait MediaTypes { object text { lazy val `vnd.wap.wmlscript`: MediaType = - new MediaType("text", "vnd.wap.wmlscript", compressible = false, binary = true, List("wmls")) + new MediaType("text", "vnd.wap.wmlscript", compressible = false, binary = false, List("wmls")) lazy val `ulpfec`: MediaType = - new MediaType("text", "ulpfec", compressible = false, binary = true) + new MediaType("text", "ulpfec", compressible = false, binary = false) lazy val `vnd.radisys.msml-basic-layout`: MediaType = - new MediaType("text", "vnd.radisys.msml-basic-layout", compressible = false, binary = true) + new MediaType("text", "vnd.radisys.msml-basic-layout", compressible = false, binary = false) lazy val `shex`: MediaType = - new MediaType("text", "shex", compressible = false, binary = true, List("shex")) + new MediaType("text", "shex", compressible = false, binary = false, List("shex")) lazy val `shaclc`: MediaType = - new MediaType("text", "shaclc", compressible = false, binary = true) + new MediaType("text", "shaclc", compressible = false, binary = false) lazy val `vnd.curl.dcurl`: MediaType = - new MediaType("text", "vnd.curl.dcurl", compressible = false, binary = true, List("dcurl")) + new MediaType("text", "vnd.curl.dcurl", compressible = false, binary = false, List("dcurl")) lazy val `xml-external-parsed-entity`: MediaType = - new MediaType("text", "xml-external-parsed-entity", compressible = false, binary = true) + new MediaType("text", "xml-external-parsed-entity", compressible = false, binary = false) lazy val `fhirpath`: MediaType = - new MediaType("text", "fhirpath", compressible = false, binary = true) + new MediaType("text", "fhirpath", compressible = false, binary = false) lazy val `turtle`: MediaType = - new MediaType("text", "turtle", compressible = false, binary = true, List("ttl")) + new MediaType("text", "turtle", compressible = false, binary = false, List("ttl")) lazy val `vnd.sun.j2me.app-descriptor`: MediaType = - new MediaType("text", "vnd.sun.j2me.app-descriptor", compressible = false, binary = true, List("jad")) + new MediaType("text", "vnd.sun.j2me.app-descriptor", compressible = false, binary = false, List("jad")) lazy val `x-sass`: MediaType = - new MediaType("text", "x-sass", compressible = false, binary = true, List("sass")) + new MediaType("text", "x-sass", compressible = false, binary = false, List("sass")) lazy val `x-vcard`: MediaType = - new MediaType("text", "x-vcard", compressible = false, binary = true, List("vcf")) + new MediaType("text", "x-vcard", compressible = false, binary = false, List("vcf")) lazy val `vnd.a`: MediaType = - new MediaType("text", "vnd.a", compressible = false, binary = true) + new MediaType("text", "vnd.a", compressible = false, binary = false) lazy val `uri-list`: MediaType = new MediaType("text", "uri-list", compressible = true, binary = false, List("uri", "uris", "urls")) @@ -8305,10 +8302,10 @@ private[zio] trait MediaTypes { new MediaType("text", "markdown", compressible = true, binary = false, List("md", "markdown")) lazy val `vnd.dvb.subtitle`: MediaType = - new MediaType("text", "vnd.dvb.subtitle", compressible = false, binary = true, List("sub")) + new MediaType("text", "vnd.dvb.subtitle", compressible = false, binary = false, List("sub")) lazy val `ecmascript`: MediaType = - new MediaType("text", "ecmascript", compressible = false, binary = true) + new MediaType("text", "ecmascript", compressible = false, binary = false) lazy val `x-processing`: MediaType = new MediaType("text", "x-processing", compressible = true, binary = false, List("pde")) @@ -8326,184 +8323,190 @@ private[zio] trait MediaTypes { new MediaType("text", "cache-manifest", compressible = true, binary = false, List("appcache", "manifest")) lazy val `vnd.wap.sl`: MediaType = - new MediaType("text", "vnd.wap.sl", compressible = false, binary = true) + new MediaType("text", "vnd.wap.sl", compressible = false, binary = false) lazy val `dns`: MediaType = - new MediaType("text", "dns", compressible = false, binary = true) + new MediaType("text", "dns", compressible = false, binary = false) lazy val `strings`: MediaType = - new MediaType("text", "strings", compressible = false, binary = true) + new MediaType("text", "strings", compressible = false, binary = false) lazy val `csv`: MediaType = new MediaType("text", "csv", compressible = true, binary = false, List("csv")) lazy val `vnd.gml`: MediaType = - new MediaType("text", "vnd.gml", compressible = false, binary = true) + new MediaType("text", "vnd.gml", compressible = false, binary = false) lazy val `x-setext`: MediaType = - new MediaType("text", "x-setext", compressible = false, binary = true, List("etx")) + new MediaType("text", "x-setext", compressible = false, binary = false, List("etx")) lazy val `x-lua`: MediaType = - new MediaType("text", "x-lua", compressible = false, binary = true, List("lua")) + new MediaType("text", "x-lua", compressible = false, binary = false, List("lua")) lazy val `x-vcalendar`: MediaType = - new MediaType("text", "x-vcalendar", compressible = false, binary = true, List("vcs")) + new MediaType("text", "x-vcalendar", compressible = false, binary = false, List("vcs")) lazy val `vnd.exchangeable`: MediaType = - new MediaType("text", "vnd.exchangeable", compressible = false, binary = true) + new MediaType("text", "vnd.exchangeable", compressible = false, binary = false) lazy val `wgsl`: MediaType = - new MediaType("text", "wgsl", compressible = false, binary = true, List("wgsl")) + new MediaType("text", "wgsl", compressible = false, binary = false, List("wgsl")) lazy val `rfc822-headers`: MediaType = - new MediaType("text", "rfc822-headers", compressible = false, binary = true) + new MediaType("text", "rfc822-headers", compressible = false, binary = false) lazy val `vnd.graphviz`: MediaType = - new MediaType("text", "vnd.graphviz", compressible = false, binary = true, List("gv")) + new MediaType("text", "vnd.graphviz", compressible = false, binary = false, List("gv")) lazy val `red`: MediaType = - new MediaType("text", "red", compressible = false, binary = true) + new MediaType("text", "red", compressible = false, binary = false) lazy val `x-fortran`: MediaType = - new MediaType("text", "x-fortran", compressible = false, binary = true, List("f", "for", "f77", "f90")) + new MediaType("text", "x-fortran", compressible = false, binary = false, List("f", "for", "f77", "f90")) lazy val `cql`: MediaType = - new MediaType("text", "cql", compressible = false, binary = true) + new MediaType("text", "cql", compressible = false, binary = false) lazy val `vnd.esmertec.theme-descriptor`: MediaType = - new MediaType("text", "vnd.esmertec.theme-descriptor", compressible = false, binary = true) + new MediaType("text", "vnd.esmertec.theme-descriptor", compressible = false, binary = false) lazy val `directory`: MediaType = - new MediaType("text", "directory", compressible = false, binary = true) + new MediaType("text", "directory", compressible = false, binary = false) lazy val `css`: MediaType = new MediaType("text", "css", compressible = true, binary = false, List("css")) lazy val `vnd.latex-z`: MediaType = - new MediaType("text", "vnd.latex-z", compressible = false, binary = true) + new MediaType("text", "vnd.latex-z", compressible = false, binary = false) lazy val `vnd.fly`: MediaType = - new MediaType("text", "vnd.fly", compressible = false, binary = true, List("fly")) + new MediaType("text", "vnd.fly", compressible = false, binary = false, List("fly")) lazy val `vnd.senx.warpscript`: MediaType = - new MediaType("text", "vnd.senx.warpscript", compressible = false, binary = true) + new MediaType("text", "vnd.senx.warpscript", compressible = false, binary = false) lazy val `vnd.sosi`: MediaType = - new MediaType("text", "vnd.sosi", compressible = false, binary = true) + new MediaType("text", "vnd.sosi", compressible = false, binary = false) lazy val `parameters`: MediaType = - new MediaType("text", "parameters", compressible = false, binary = true) + new MediaType("text", "parameters", compressible = false, binary = false) lazy val `provenance-notation`: MediaType = - new MediaType("text", "provenance-notation", compressible = false, binary = true) + new MediaType("text", "provenance-notation", compressible = false, binary = false) lazy val `x-markdown`: MediaType = new MediaType("text", "x-markdown", compressible = true, binary = false, List("mkd")) lazy val `x-handlebars-template`: MediaType = - new MediaType("text", "x-handlebars-template", compressible = false, binary = true, List("hbs")) + new MediaType("text", "x-handlebars-template", compressible = false, binary = false, List("hbs")) lazy val `csv-schema`: MediaType = - new MediaType("text", "csv-schema", compressible = false, binary = true) + new MediaType("text", "csv-schema", compressible = false, binary = false) lazy val `rtp-enc-aescm128`: MediaType = - new MediaType("text", "rtp-enc-aescm128", compressible = false, binary = true) + new MediaType("text", "rtp-enc-aescm128", compressible = false, binary = false) lazy val `jcr-cnd`: MediaType = - new MediaType("text", "jcr-cnd", compressible = false, binary = true) + new MediaType("text", "jcr-cnd", compressible = false, binary = false) lazy val `vnd.hans`: MediaType = - new MediaType("text", "vnd.hans", compressible = false, binary = true) + new MediaType("text", "vnd.hans", compressible = false, binary = false) lazy val `x-java-source`: MediaType = - new MediaType("text", "x-java-source", compressible = false, binary = true, List("java")) + new MediaType("text", "x-java-source", compressible = false, binary = false, List("java")) lazy val `vnd.curl.scurl`: MediaType = - new MediaType("text", "vnd.curl.scurl", compressible = false, binary = true, List("scurl")) + new MediaType("text", "vnd.curl.scurl", compressible = false, binary = false, List("scurl")) lazy val `encaprtp`: MediaType = - new MediaType("text", "encaprtp", compressible = false, binary = true) + new MediaType("text", "encaprtp", compressible = false, binary = false) lazy val `vnd.iptc.newsml`: MediaType = - new MediaType("text", "vnd.iptc.newsml", compressible = false, binary = true) + new MediaType("text", "vnd.iptc.newsml", compressible = false, binary = false) lazy val `vnd.fmi.flexstor`: MediaType = - new MediaType("text", "vnd.fmi.flexstor", compressible = false, binary = true, List("flx")) + new MediaType("text", "vnd.fmi.flexstor", compressible = false, binary = false, List("flx")) lazy val `vnd.wap.wml`: MediaType = - new MediaType("text", "vnd.wap.wml", compressible = false, binary = true, List("wml")) + new MediaType("text", "vnd.wap.wml", compressible = false, binary = false, List("wml")) lazy val `cql-identifier`: MediaType = - new MediaType("text", "cql-identifier", compressible = false, binary = true) + new MediaType("text", "cql-identifier", compressible = false, binary = false) lazy val `vcard`: MediaType = new MediaType("text", "vcard", compressible = true, binary = false, List("vcard")) lazy val `rtploopback`: MediaType = - new MediaType("text", "rtploopback", compressible = false, binary = true) + new MediaType("text", "rtploopback", compressible = false, binary = false) lazy val `cql-expression`: MediaType = - new MediaType("text", "cql-expression", compressible = false, binary = true) + new MediaType("text", "cql-expression", compressible = false, binary = false) lazy val `x-opml`: MediaType = - new MediaType("text", "x-opml", compressible = false, binary = true, List("opml")) + new MediaType("text", "x-opml", compressible = false, binary = false, List("opml")) lazy val `event-stream`: MediaType = new MediaType("text", "event-stream", compressible = true, binary = false) lazy val `slim`: MediaType = - new MediaType("text", "slim", compressible = false, binary = true, List("slim", "slm")) + new MediaType("text", "slim", compressible = false, binary = false, List("slim", "slm")) lazy val `x-pascal`: MediaType = - new MediaType("text", "x-pascal", compressible = false, binary = true, List("p", "pas")) + new MediaType("text", "x-pascal", compressible = false, binary = false, List("p", "pas")) lazy val `parityfec`: MediaType = - new MediaType("text", "parityfec", compressible = false, binary = true) + new MediaType("text", "parityfec", compressible = false, binary = false) lazy val `prs.prop.logic`: MediaType = - new MediaType("text", "prs.prop.logic", compressible = false, binary = true) + new MediaType("text", "prs.prop.logic", compressible = false, binary = false) lazy val `t140`: MediaType = - new MediaType("text", "t140", compressible = false, binary = true) + new MediaType("text", "t140", compressible = false, binary = false) lazy val `javascript`: MediaType = new MediaType("text", "javascript", compressible = true, binary = false, List("js", "mjs")) lazy val `vnd.dmclientscript`: MediaType = - new MediaType("text", "vnd.dmclientscript", compressible = false, binary = true) + new MediaType("text", "vnd.dmclientscript", compressible = false, binary = false) lazy val `x-sfv`: MediaType = - new MediaType("text", "x-sfv", compressible = false, binary = true, List("sfv")) + new MediaType("text", "x-sfv", compressible = false, binary = false, List("sfv")) lazy val `flexfec`: MediaType = - new MediaType("text", "flexfec", compressible = false, binary = true) + new MediaType("text", "flexfec", compressible = false, binary = false) lazy val `spdx`: MediaType = - new MediaType("text", "spdx", compressible = false, binary = true, List("spdx")) + new MediaType("text", "spdx", compressible = false, binary = false, List("spdx")) lazy val `stylus`: MediaType = - new MediaType("text", "stylus", compressible = false, binary = true, List("stylus", "styl")) + new MediaType("text", "stylus", compressible = false, binary = false, List("stylus", "styl")) lazy val `coffeescript`: MediaType = - new MediaType("text", "coffeescript", compressible = false, binary = true, List("coffee", "litcoffee")) + new MediaType("text", "coffeescript", compressible = false, binary = false, List("coffee", "litcoffee")) lazy val `yaml`: MediaType = new MediaType("text", "yaml", compressible = true, binary = false, List("yaml", "yml")) lazy val `vnd.familysearch.gedcom`: MediaType = - new MediaType("text", "vnd.familysearch.gedcom", compressible = false, binary = true, List("ged")) + new MediaType("text", "vnd.familysearch.gedcom", compressible = false, binary = false, List("ged")) lazy val `vnd.in3d.3dml`: MediaType = - new MediaType("text", "vnd.in3d.3dml", compressible = false, binary = true, List("3dml")) + new MediaType("text", "vnd.in3d.3dml", compressible = false, binary = false, List("3dml")) lazy val `x-c`: MediaType = - new MediaType("text", "x-c", compressible = false, binary = true, List("c", "cc", "cxx", "cpp", "h", "hh", "dic")) + new MediaType( + "text", + "x-c", + compressible = false, + binary = false, + List("c", "cc", "cxx", "cpp", "h", "hh", "dic"), + ) lazy val `x-gwt-rpc`: MediaType = new MediaType("text", "x-gwt-rpc", compressible = true, binary = false) lazy val `grammar-ref-list`: MediaType = - new MediaType("text", "grammar-ref-list", compressible = false, binary = true) + new MediaType("text", "grammar-ref-list", compressible = false, binary = false) lazy val `plain`: MediaType = new MediaType( @@ -8515,100 +8518,100 @@ private[zio] trait MediaTypes { ) lazy val `vnd.in3d.spot`: MediaType = - new MediaType("text", "vnd.in3d.spot", compressible = false, binary = true, List("spot")) + new MediaType("text", "vnd.in3d.spot", compressible = false, binary = false, List("spot")) lazy val `x-asm`: MediaType = - new MediaType("text", "x-asm", compressible = false, binary = true, List("s", "asm")) + new MediaType("text", "x-asm", compressible = false, binary = false, List("s", "asm")) lazy val `x-scss`: MediaType = - new MediaType("text", "x-scss", compressible = false, binary = true, List("scss")) + new MediaType("text", "x-scss", compressible = false, binary = false, List("scss")) lazy val `gff3`: MediaType = - new MediaType("text", "gff3", compressible = false, binary = true) + new MediaType("text", "gff3", compressible = false, binary = false) lazy val `vnd.trolltech.linguist`: MediaType = - new MediaType("text", "vnd.trolltech.linguist", compressible = false, binary = true) + new MediaType("text", "vnd.trolltech.linguist", compressible = false, binary = false) lazy val `jsx`: MediaType = new MediaType("text", "jsx", compressible = true, binary = false, List("jsx")) lazy val `vnd.debian.copyright`: MediaType = - new MediaType("text", "vnd.debian.copyright", compressible = false, binary = true) + new MediaType("text", "vnd.debian.copyright", compressible = false, binary = false) lazy val `enriched`: MediaType = - new MediaType("text", "enriched", compressible = false, binary = true) + new MediaType("text", "enriched", compressible = false, binary = false) lazy val `vnd.curl`: MediaType = - new MediaType("text", "vnd.curl", compressible = false, binary = true, List("curl")) + new MediaType("text", "vnd.curl", compressible = false, binary = false, List("curl")) lazy val `x-component`: MediaType = - new MediaType("text", "x-component", compressible = false, binary = true, List("htc")) + new MediaType("text", "x-component", compressible = false, binary = false, List("htc")) lazy val `mdx`: MediaType = new MediaType("text", "mdx", compressible = true, binary = false, List("mdx")) lazy val `jade`: MediaType = - new MediaType("text", "jade", compressible = false, binary = true, List("jade")) + new MediaType("text", "jade", compressible = false, binary = false, List("jade")) lazy val `hl7v2`: MediaType = - new MediaType("text", "hl7v2", compressible = false, binary = true) + new MediaType("text", "hl7v2", compressible = false, binary = false) lazy val `x-suse-ymp`: MediaType = new MediaType("text", "x-suse-ymp", compressible = true, binary = false, List("ymp")) lazy val `rtx`: MediaType = - new MediaType("text", "rtx", compressible = false, binary = true) + new MediaType("text", "rtx", compressible = false, binary = false) lazy val `vnd.ficlab.flt`: MediaType = - new MediaType("text", "vnd.ficlab.flt", compressible = false, binary = true) + new MediaType("text", "vnd.ficlab.flt", compressible = false, binary = false) lazy val `html`: MediaType = new MediaType("text", "html", compressible = true, binary = false, List("html", "htm", "shtml")) lazy val `1d-interleaved-parityfec`: MediaType = - new MediaType("text", "1d-interleaved-parityfec", compressible = false, binary = true) + new MediaType("text", "1d-interleaved-parityfec", compressible = false, binary = false) lazy val `vnd.ascii-art`: MediaType = - new MediaType("text", "vnd.ascii-art", compressible = false, binary = true) + new MediaType("text", "vnd.ascii-art", compressible = false, binary = false) lazy val `x-nfo`: MediaType = - new MediaType("text", "x-nfo", compressible = false, binary = true, List("nfo")) + new MediaType("text", "x-nfo", compressible = false, binary = false, List("nfo")) lazy val `mizar`: MediaType = - new MediaType("text", "mizar", compressible = false, binary = true) + new MediaType("text", "mizar", compressible = false, binary = false) lazy val `sgml`: MediaType = - new MediaType("text", "sgml", compressible = false, binary = true, List("sgml", "sgm")) + new MediaType("text", "sgml", compressible = false, binary = false, List("sgml", "sgm")) lazy val `vnd.motorola.reflex`: MediaType = - new MediaType("text", "vnd.motorola.reflex", compressible = false, binary = true) + new MediaType("text", "vnd.motorola.reflex", compressible = false, binary = false) lazy val `vnd.hgl`: MediaType = - new MediaType("text", "vnd.hgl", compressible = false, binary = true) + new MediaType("text", "vnd.hgl", compressible = false, binary = false) lazy val `vnd.abc`: MediaType = - new MediaType("text", "vnd.abc", compressible = false, binary = true) + new MediaType("text", "vnd.abc", compressible = false, binary = false) lazy val `vnd.net2phone.commcenter.command`: MediaType = - new MediaType("text", "vnd.net2phone.commcenter.command", compressible = false, binary = true) + new MediaType("text", "vnd.net2phone.commcenter.command", compressible = false, binary = false) lazy val `prs.lines.tag`: MediaType = - new MediaType("text", "prs.lines.tag", compressible = false, binary = true, List("dsc")) + new MediaType("text", "prs.lines.tag", compressible = false, binary = false, List("dsc")) lazy val `vnd.iptc.nitf`: MediaType = - new MediaType("text", "vnd.iptc.nitf", compressible = false, binary = true) + new MediaType("text", "vnd.iptc.nitf", compressible = false, binary = false) lazy val `vnd.wap.si`: MediaType = - new MediaType("text", "vnd.wap.si", compressible = false, binary = true) + new MediaType("text", "vnd.wap.si", compressible = false, binary = false) lazy val `richtext`: MediaType = new MediaType("text", "richtext", compressible = true, binary = false, List("rtx")) lazy val `vnd.curl.mcurl`: MediaType = - new MediaType("text", "vnd.curl.mcurl", compressible = false, binary = true, List("mcurl")) + new MediaType("text", "vnd.curl.mcurl", compressible = false, binary = false, List("mcurl")) lazy val `vnd.ms-mediapackage`: MediaType = - new MediaType("text", "vnd.ms-mediapackage", compressible = false, binary = true) + new MediaType("text", "vnd.ms-mediapackage", compressible = false, binary = false) lazy val `n3`: MediaType = new MediaType("text", "n3", compressible = true, binary = false, List("n3")) @@ -8617,16 +8620,16 @@ private[zio] trait MediaTypes { new MediaType("text", "vtt", compressible = true, binary = false, List("vtt")) lazy val `fwdred`: MediaType = - new MediaType("text", "fwdred", compressible = false, binary = true) + new MediaType("text", "fwdred", compressible = false, binary = false) lazy val `prs.fallenstein.rst`: MediaType = - new MediaType("text", "prs.fallenstein.rst", compressible = false, binary = true) + new MediaType("text", "prs.fallenstein.rst", compressible = false, binary = false) lazy val `mathml`: MediaType = - new MediaType("text", "mathml", compressible = false, binary = true, List("mml")) + new MediaType("text", "mathml", compressible = false, binary = false, List("mml")) lazy val `vnd.si.uricatalogue`: MediaType = - new MediaType("text", "vnd.si.uricatalogue", compressible = false, binary = true) + new MediaType("text", "vnd.si.uricatalogue", compressible = false, binary = false) lazy val `xml`: MediaType = new MediaType("text", "xml", compressible = true, binary = false, List("xml")) @@ -8635,10 +8638,10 @@ private[zio] trait MediaTypes { new MediaType("text", "rtf", compressible = true, binary = false, List("rtf")) lazy val `x-uuencode`: MediaType = - new MediaType("text", "x-uuencode", compressible = false, binary = true, List("uu")) + new MediaType("text", "x-uuencode", compressible = false, binary = false, List("uu")) lazy val `troff`: MediaType = - new MediaType("text", "troff", compressible = false, binary = true, List("t", "tr", "roff", "man", "me", "ms")) + new MediaType("text", "troff", compressible = false, binary = false, List("t", "tr", "roff", "man", "me", "ms")) lazy val `x-jquery-tmpl`: MediaType = new MediaType("text", "x-jquery-tmpl", compressible = true, binary = false) @@ -8647,10 +8650,10 @@ private[zio] trait MediaTypes { new MediaType("text", "x-org", compressible = true, binary = false, List("org")) lazy val `calendar`: MediaType = - new MediaType("text", "calendar", compressible = false, binary = true, List("ics", "ifb")) + new MediaType("text", "calendar", compressible = false, binary = false, List("ics", "ifb")) lazy val `raptorfec`: MediaType = - new MediaType("text", "raptorfec", compressible = false, binary = true) + new MediaType("text", "raptorfec", compressible = false, binary = false) lazy val all: List[MediaType] = List( `vnd.wap.wmlscript`, @@ -8793,10 +8796,10 @@ private[zio] trait MediaTypes { new MediaType("font", "woff", compressible = false, binary = true, List("woff")) lazy val `ttf`: MediaType = - new MediaType("font", "ttf", compressible = true, binary = false, List("ttf")) + new MediaType("font", "ttf", compressible = true, binary = true, List("ttf")) lazy val `otf`: MediaType = - new MediaType("font", "otf", compressible = true, binary = false, List("otf")) + new MediaType("font", "otf", compressible = true, binary = true, List("otf")) lazy val `woff2`: MediaType = new MediaType("font", "woff2", compressible = false, binary = true, List("woff2"))