A cutesy HTTP client for Gleam

scaffold

+92
+1
.envrc
··· 1 + use flake
+4
.gitignore
··· 1 + *.beam 2 + *.ez 3 + /build 4 + erl_crash.dump
+24
README.md
··· 1 + # project 2 + 3 + [![Package Version](https://img.shields.io/hexpm/v/project)](https://hex.pm/packages/project) 4 + [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/project/) 5 + 6 + ```sh 7 + gleam add project@1 8 + ``` 9 + ```gleam 10 + import project 11 + 12 + pub fn main() -> Nil { 13 + // TODO: An example of the project in use 14 + } 15 + ``` 16 + 17 + Further documentation can be found at <https://hexdocs.pm/project>. 18 + 19 + ## Development 20 + 21 + ```sh 22 + gleam run # Run the project 23 + gleam test # Run the tests 24 + ```
+28
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 + flakelight.url = "github:nix-community/flakelight"; 5 + flakelight-treefmt.url = "github:m15a/flakelight-treefmt"; 6 + 7 + flakelight.inputs.nixpkgs.follows = "nixpkgs"; 8 + flakelight-treefmt.inputs.flakelight.follows = "flakelight"; 9 + }; 10 + outputs = { flakelight, ... }@inputs: 11 + flakelight ./. { 12 + inherit inputs; 13 + 14 + imports = with inputs; [ 15 + flakelight-treefmt.flakelightModules.default 16 + ]; 17 + 18 + devShell.packages = pkgs: with pkgs; [ 19 + gleam 20 + ]; 21 + 22 + treefmtConfig = 23 + { ... }: { 24 + programs.nixfmt.enable = true; 25 + programs.gleam.enable = true; 26 + }; 27 + }; 28 + }
+20
gleam.toml
··· 1 + name = "requwu" 2 + version = "1.0.0" 3 + 4 + description = "A cutesy HTTP client for Gleam" 5 + target = "erlang" 6 + 7 + licences = ["Apache-2.0"] 8 + 9 + [repository] 10 + type = "tangled" 11 + user = "fuzzko.neocities.org" 12 + repo = "requwu" 13 + 14 + gleam = ">= 1.13.0" 15 + 16 + [dependencies] 17 + mug = { git = "https://github.com/arnu515/mug.git", ref = "main" } # required for ssl support 18 + gleam_stdlib = ">= 0.69.0 and < 1.0.0" 19 + gleam_erlang = ">= 1.3.0 and < 2.0.0" 20 + gleam_otp = ">= 1.2.0 and < 2.0.0"
+15
manifest.toml
··· 1 + # This file was generated by Gleam 2 + # You typically do not need to edit this file 3 + 4 + packages = [ 5 + { name = "gleam_erlang", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "1124AD3AA21143E5AF0FC5CF3D9529F6DB8CA03E43A55711B60B6B7B3874375C" }, 6 + { name = "gleam_otp", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "BA6A294E295E428EC1562DC1C11EA7530DCB981E8359134BEABC8493B7B2258E" }, 7 + { name = "gleam_stdlib", version = "0.69.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "AAB0962BEBFAA67A2FBEE9EEE218B057756808DC9AF77430F5182C6115B3A315" }, 8 + { name = "mug", version = "3.1.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], source = "git", repo = "https://github.com/arnu515/mug.git", commit = "a2767a2992dbf61c9450739ba98031e74072ea5c" }, 9 + ] 10 + 11 + [requirements] 12 + gleam_erlang = { version = ">= 1.3.0 and < 2.0.0" } 13 + gleam_otp = { version = ">= 1.2.0 and < 2.0.0" } 14 + gleam_stdlib = { version = ">= 0.69.0 and < 1.0.0" } 15 + mug = { git = "https://github.com/arnu515/mug.git", ref = "main" }
src/.gitkeep

This is a binary file and will not be displayed.

test/.gitkeep

This is a binary file and will not be displayed.