Gleam HTTP

repository·main·Indexed 43 days ago

https://github.com/gleam-lang/http

A standardized set of types and functions for working with HTTP in the Gleam language. It provides an abstraction layer for interoperability between various server adapters (such as mist, gleam_cowboy, and ewe) and client adapters (such as gleam_fetch, gleam_hackney, and gleam_httpc).

Tokens
258
Snippets
0
Records
3
Agent score
5%

What's inside Gleam HTTP

  1. Overview of Gleam HTTP

    main
    Gleam HTTP provides the core types and functions required to build both HTTP clients and HTTP servers in Gleam. It acts as an abstraction layer, allowing you to write HTTP logic that can be run on various server adapters or used with different client adapters.
  2. Available Server Adapters for Gleam HTTP

    main

    To run a Gleam HTTP service, you must use a server adapter. The following adapters are available:

    AdapterAbout
    cgiAdapter for the Common Gateway Interface
    eweGleam HTTP2 & HTTP1.1 web server
    fcgiAdapter for the Fast Common Gateway Interface
    gleam_cowboyCowboy (Erlang HTTP2 & HTTP1.1 web server)
    gleam_elliElli (Erlang HTTP1.1 web server)
    gleam_httpdBEAM built-in HTTP1.1 server
    mistMist (Gleam HTTP1.1 server)
  3. Available Client Adapters for Gleam HTTP

    main

    To send HTTP requests to services over the network, you can use one of the following client adapters:

    AdapterAbout
    gleam_fetchJavaScript Fetch API
    gleam_hackneyHackney (Erlang HTTP client)
    gleam_httpcBEAM built-in HTTP client