[{"name":"ApiRoute","comment":"\n\n@docs Done, Handler, Response, buildTimeRoutes, capture, int, literal, single, slash, succeed\n\n","unions":[],"aliases":[{"name":"Done","comment":" ","args":["response"],"type":"Internal.ApiRoute.Done response"},{"name":"Handler","comment":" ","args":["a","constructor"],"type":"Internal.ApiRoute.Handler a constructor"},{"name":"Response","comment":" ","args":[],"type":"{ body : String.String }"}],"values":[{"name":"buildTimeRoutes","comment":" ","type":"(constructor -> DataSource.DataSource (List.List (List.List String.String))) -> ApiRoute.Handler (DataSource.DataSource ApiRoute.Response) constructor -> ApiRoute.Done ApiRoute.Response"},{"name":"capture","comment":" ","type":"ApiRoute.Handler (String.String -> a) constructor -> ApiRoute.Handler a (String.String -> constructor)"},{"name":"int","comment":" ","type":"ApiRoute.Handler (Basics.Int -> a) constructor -> ApiRoute.Handler a (Basics.Int -> constructor)"},{"name":"literal","comment":" ","type":"String.String -> ApiRoute.Handler a constructor -> ApiRoute.Handler a constructor"},{"name":"single","comment":" ","type":"ApiRoute.Handler (DataSource.DataSource ApiRoute.Response) (List.List String.String) -> ApiRoute.Done ApiRoute.Response"},{"name":"slash","comment":" ","type":"ApiRoute.Handler a constructor -> ApiRoute.Handler a constructor"},{"name":"succeed","comment":" ","type":"a -> ApiRoute.Handler a (List.List String.String)"}],"binops":[]},{"name":"DataSource","comment":"StaticHttprequestsareanalternativetodoingElmHTTPrequeststhetraditionalwayusingthe`elm/http`package.\n\nThekeydifferencesare:\n\n-`StaticHttp.Request`sareperformedonceatbuildtime(`Http.Request`sareperformedatruntime,atwheneverpointyouperformthem)\n-`StaticHttp.Request`sstripoutunusedJSONdatafromthedatayourdecoderdoesn'ttouchtominimizetheJSONpayload\n-`StaticHttp.Request`scanuse[`Pages.Secrets`](Pages.Secrets)tosecurelyusecredentialsfromyourenvironmentvariableswhicharecompletelymaskedintheproductionassets.\n-`StaticHttp.Request`shaveabuilt-in`StaticHttp.andThen`thatallowsyoutoperformfollow-uprequestswithoutusingtasks\n\n\n##ScenarioswhereStaticHttpisagoodfit\n\nIfyouneeddatathatisrefreshedoftenyoumaywanttodoatraditionalHTTPrequestwiththe`elm/http`package.\nThekindsofsituationsthatareservedwellbystaticHTTParewithdatathatupdatesmoderatelyfrequentlyorinfrequently(ornever).\nAcommonpatternistotriggeranewbuildwhendatachanges.ManyJAMstackservices\nallowyoutosendaWebHooktoyourhost(forexample,Netlifyisagoodstaticfilehostthatsupportstriggeringbuildswithwebhooks).So\nyoumaywanttohaveyoursiterebuildeverytimeyourcalendarfeedhasaneventadded,orwheneverapageorarticleisadded\norupdatedonaCMSservicelikeContentful.\n\nInscenarioslikethis,youcanservedatathatisjustasup-to-dateasitwouldbeusing`elm/http`,butyougettheperformance\ngainsofusing`StaticHttp.Request`saswellasthesimplicityandrobustnessthatcomeswithit.Readmoreaboutthesebenefits\nin[thisarticleintroducingStaticHttprequestsandsomeconceptsaroundit](https://elm-pages.com/blog/static-http).\n\n\n## Scenarios where StaticHttp is not a good fit\n\n - Data that is specific to the logged-in user\n - Data that needs to be the very latest and changes often (for example, sports scores)\n\n@docs DataSource\n\n@docs map, succeed, fail\n\n@docs fromResult\n\n\n## Building a StaticHttp Request Body\n\nThe way you build a body is analogous to the `elm/http` package. Currently, only `emptyBody` and\n`stringBody` are supported. If you have a use case that calls for a different body type, please open a Github issue\nand describe your use case!\n\n@docs Body, emptyBody, stringBody, jsonBody\n\n\n## Chaining Requests\n\n@docs andThen, resolve, combine\n\n@docs andMap\n\n@docs map2, map3, map4, map5, map6, map7, map8, map9\n\n\n## Optimizing Page Data\n\nDistilling data lets you red