{"id":16592691,"url":"https://github.com/prikhi/http-tasks","last_synced_at":"2025-10-29T10:30:41.162Z","repository":{"id":62419417,"uuid":"162055456","full_name":"prikhi/http-tasks","owner":"prikhi","description":"Convenience Functions for Working with HTTP Requests as Tasks.","archived":false,"fork":false,"pushed_at":"2020-07-19T22:35:03.000Z","size":41,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T01:02:05.859Z","etag":null,"topics":["elm","http","tasks"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/prikhi/http-tasks/latest/","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prikhi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-17T00:50:59.000Z","updated_at":"2022-12-16T13:56:25.000Z","dependencies_parsed_at":"2022-11-01T16:48:58.441Z","dependency_job_id":null,"html_url":"https://github.com/prikhi/http-tasks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fhttp-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fhttp-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fhttp-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prikhi%2Fhttp-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prikhi","download_url":"https://codeload.github.com/prikhi/http-tasks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238803531,"owners_count":19533332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","http","tasks"],"created_at":"2024-10-11T23:21:57.190Z","updated_at":"2025-10-29T10:30:35.899Z","avatar_url":"https://github.com/prikhi.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Tasks\n\n[![Build Status](https://travis-ci.org/prikhi/http-tasks.svg?branch=master)](https://travis-ci.org/prikhi/http-tasks)\n\nThis library includes some convenience functions for building HTTP requests as\nTasks instead of Cmds, including things like making GET requests \u0026 decoding JSON:\n\n```elm\nimport Http\nimport Http.Tasks exposing (get, resolveString, resolveJson)\nimport Json.Decode as Decode exposing (Decoder)\nimport Task exposing (Task)\n\n\ntype Msg\n    = ReceiveData (Result Http.Error MyType)\n\ntype alias MyType =\n    { fieldOne : String\n    , fieldTwo : String\n    }\n\ndecodeMyType : Decoder MyType\ndecodeMyType =\n    Decode.map MyType\n        |\u003e Decode.field \"fieldOne\" Decode.string\n        |\u003e Decode.field \"fieldTwo\" Decode.string\n\n\nfirstTask : Task Http.Error String\nfirstTask =\n    get\n        { url = \"https://some.domains.api\"\n        , resolver = resolveString\n        }\n\nsecondTask : String -\u003e Task Http.Error MyType\nsecondTask somePath =\n    get\n        { url = \"https://some/domains.api/\" ++ somePath ++ \"/\"\n        , resolver = resolveJson decodeMyType\n        }\n\nmyCommand : Cmd Msg\nmyCommand =\n    firstTask\n        |\u003e Task.andThen secondTask\n        |\u003e Task.attempt ReceiveData\n```\n\n## License\n\nMIT, but exceptions possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fhttp-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprikhi%2Fhttp-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprikhi%2Fhttp-tasks/lists"}