[{"name":"Http.Error","comment":" The `Http.Error` module defines a new kind of http error related to json api\n\n\n# Definitions\n\n@docs RequestError\n\n","unions":[{"name":"RequestError","comment":" You can have:\n\n  - `HttpError`: a normal http error\n  - `JsonApiError`: an error related to the json api specification\n  - `CustomError`: a custom error\n\n","args":[],"cases":[["HttpError",["Http.Error"]],["JsonApiError",["List.List JsonApi.Decode.Error"]],["CustomError",["String.String"]]]}],"aliases":[],"values":[],"binops":[]},{"name":"Http.Methods","comment":" Http methods, to use with requests and urls\n\n\n# Definitions\n\n@docs Method\n\n\n# Functions\n\n@docs toString\n\n","unions":[{"name":"Method","comment":" Defines http verbs\n","args":[],"cases":[["POST",[]],["PUT",[]],["DELETE",[]],["GET",[]],["PATCH",[]]]}],"aliases":[],"values":[{"name":"toString","comment":" Transforms an http verb to a string\n","type":"Http.Methods.Method -> String.String"}],"binops":[]},{"name":"Http.Request","comment":" `Http.Request` allows you to create http requests with [https://package.elm-lang.org/packages/FabienHenon/jsonapi/latest/](`jsonapi`) objects.\n\nThe request functions will return a [https://package.elm-lang.org/packages/krisajenkins/remotedata/latest/](`RemoteData`) with a jsonapi `Document`.\nThe `content-type` used in the request headers is `application/vnd.api+json` according to the jsonapi specification.\n\n\n# Definitions\n\n@docs Request, RequestCustomData, RequestNoContent\n\n\n# Requests\n\n@docs request, requestCustomData, requestNoContent\n\n","unions":[],"aliases":[{"name":"Request","comment":" Defines a `Request` with a url, some headers, a body, and a jsonapi document decoder.\n`meta`and `data` are types used by the jsonapi document that represent the `meta` object you would like to decode, and the `data` object you would\nlike to decode\n","args":["meta","data"],"type":"{ url : Http.Url.Url, headers : List.List Http.Header, body : Json.Encode.Value, documentDecoder : Json.Decode.Decoder (Result.Result (List.List JsonApi.Decode.Error) (JsonApi.Document.Document meta data)) }"},{"name":"RequestCustomData","comment":" Defines a `Request` with a url, some headers, a body, and a custom decoder.\n`data` is the type of the object you would like to decode.\n","args":["data"],"type":"{ url : Http.Url.Url, headers : List.List Http.Header, body : Json.Encode.Value, documentDecoder : Json.Decode.Decoder (Result.Result (List.List JsonApi.Decode.Error) data) }"},{"name":"RequestNoContent","comment":" Defines a `Request` with a url, some headers, and a body. There is no content decoder.\nUseful for `DELETE` requests for instance.\n","args":[],"type":"{ url : Http.Url.Url, headers : List.List Http.Header, body : Json.Encode.Value }"}],"values":[{"name":"request","comment":" Create a request task that will decode a jsonapi object\n","type":"Http.Request.Request meta data -> Task.Task Basics.Never (RemoteData.RemoteData Http.Error.RequestError (JsonApi.Document.Document meta data))"},{"name":"requestCustomData","comment":" Create a request task that will decode a custom object\n","type":"Http.Request.RequestCustomData data -> Task.Task Basics.Never (RemoteData.RemoteData Http.Error.RequestError data)"},{"name":"requestNoContent","comment":" Create a request task that will expect nothing to decode\n","type":"Http.Request.RequestNoContent -> Task.Task Basics.Never (RemoteData.RemoteData Http.Error.RequestError ())"}],"binops":[]},{"name":"Http.Url","comment":" Defines the `Url`type to be used with http requests\n\n\n# Definitions\n\n@docs Url\n\n","unions":[],"aliases":[{"name":"Url","comment":" An url is composed of a url string and a method\n","args":[],"type":"{ url : String.String, method : Http.Methods.Method }"}],"values":[],"binops":[]}]