{
  "name": "gleam_http",
  "version": "4.5.0",
  "gleam-version-constraint": ">= 1.11.0",
  "modules": {
    "gleam/http": {
      "documentation": [
        " Functions and types for working with HTTP Gleam."
      ],
      "type-aliases": {
        "Header": {
          "documentation": null,
          "deprecation": {
            "message": "Use #(String, String) instead"
          },
          "parameters": 0,
          "alias": {
            "kind": "tuple",
            "elements": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        }
      },
      "types": {
        "ContentDisposition": {
          "documentation": null,
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": null,
              "name": "ContentDisposition",
              "parameters": [
                {
                  "label": null,
                  "type": {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "parameters",
                  "type": {
                    "kind": "named",
                    "name": "List",
                    "package": "",
                    "module": "gleam",
                    "parameters": [
                      {
                        "kind": "tuple",
                        "elements": [
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          },
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "HeaderLink": {
          "documentation": " A link parsed from a Link header value.\n\n Link headers are used in REST APIs for pagination and discoverability,\n as described by [RFC 8288](https://www.rfc-editor.org/rfc/rfc8288.html).\n\n The `uri` field contains the parsed URI reference from within the angle brackets,\n and the `parameters` field contains any link parameters such as `rel`,\n `title`, etc. Parameter names are lowercased. Extended parameters\n (e.g. `title*`) are not decoded and are returned as raw strings.\n\n",
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": null,
              "name": "HeaderLink",
              "parameters": [
                {
                  "label": "uri",
                  "type": {
                    "kind": "named",
                    "name": "Uri",
                    "package": "gleam_stdlib",
                    "module": "gleam/uri",
                    "parameters": []
                  }
                },
                {
                  "label": "parameters",
                  "type": {
                    "kind": "named",
                    "name": "List",
                    "package": "",
                    "module": "gleam",
                    "parameters": [
                      {
                        "kind": "tuple",
                        "elements": [
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          },
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          }
                        ]
                      }
                    ]
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "Method": {
          "documentation": " HTTP standard methods as defined by [RFC 2616](https://tools.ietf.org/html/rfc2616),\n [RFC 5789](https://tools.ietf.org/html/rfc5789),\n and [RFC 10008](https://www.rfc-editor.org/rfc/rfc10008.html).\n",
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": " GET requests a resource from a server. It is safe, idempotent, cachable,\n and should not have a request body.\n",
              "name": "Get",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " POST sends data to a server.\n",
              "name": "Post",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " PATCH performs a partial update to a resource on a server.\n",
              "name": "Patch",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " PUT sends data to a server. It is idempotent.\n",
              "name": "Put",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " DELETE deletes a resource from a server. It should not have a request\n body.\n",
              "name": "Delete",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " HEAD requests metadata about a resource from a server. It is safe,\n idempotent, cachable, and should not have a request body.\n",
              "name": "Head",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " TRACE performs a message loop-back test along the path to the target\n resource. It should not have a request body.\n OPTIONS requests information about what requests are permitted to a\n resource, i.e. HTTP methods and CORS.\n",
              "name": "Options",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": null,
              "name": "Trace",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " CONNECT requests that a proxy connects to a specified server and forward\n data to and from it. It should not have a request body or a response\n body.\n\n Proxies that support this should only do so for known trustworthy\n clients.\n",
              "name": "Connect",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": " Non-standard but valid HTTP methods.\n",
              "name": "Other",
              "parameters": [
                {
                  "label": null,
                  "type": {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "MultipartBody": {
          "documentation": null,
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": " The body for the part has been fully parsed.\n",
              "name": "MultipartBody",
              "parameters": [
                {
                  "label": "chunk",
                  "type": {
                    "kind": "named",
                    "name": "BitArray",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "done",
                  "type": {
                    "kind": "named",
                    "name": "Bool",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "remaining",
                  "type": {
                    "kind": "named",
                    "name": "BitArray",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                }
              ],
              "deprecation": null
            },
            {
              "documentation": null,
              "name": "MoreRequiredForBody",
              "parameters": [
                {
                  "label": "chunk",
                  "type": {
                    "kind": "named",
                    "name": "BitArray",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "continuation",
                  "type": {
                    "kind": "fn",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "BitArray",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ],
                    "return": {
                      "kind": "named",
                      "name": "Result",
                      "package": "",
                      "module": "gleam",
                      "parameters": [
                        {
                          "kind": "named",
                          "name": "MultipartBody",
                          "package": "gleam_http",
                          "module": "gleam/http",
                          "parameters": []
                        },
                        {
                          "kind": "named",
                          "name": "Nil",
                          "package": "",
                          "module": "gleam",
                          "parameters": []
                        }
                      ]
                    }
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "MultipartHeaders": {
          "documentation": null,
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": " The headers for the part have been fully parsed.\n Header keys are all lowercase.\n",
              "name": "MultipartHeaders",
              "parameters": [
                {
                  "label": "headers",
                  "type": {
                    "kind": "named",
                    "name": "List",
                    "package": "",
                    "module": "gleam",
                    "parameters": [
                      {
                        "kind": "tuple",
                        "elements": [
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          },
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          }
                        ]
                      }
                    ]
                  }
                },
                {
                  "label": "remaining",
                  "type": {
                    "kind": "named",
                    "name": "BitArray",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                }
              ],
              "deprecation": null
            },
            {
              "documentation": " More input is required to parse the headers for this part.\n",
              "name": "MoreRequiredForHeaders",
              "parameters": [
                {
                  "label": "continuation",
                  "type": {
                    "kind": "fn",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "BitArray",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ],
                    "return": {
                      "kind": "named",
                      "name": "Result",
                      "package": "",
                      "module": "gleam",
                      "parameters": [
                        {
                          "kind": "named",
                          "name": "MultipartHeaders",
                          "package": "gleam_http",
                          "module": "gleam/http",
                          "parameters": []
                        },
                        {
                          "kind": "named",
                          "name": "Nil",
                          "package": "",
                          "module": "gleam",
                          "parameters": []
                        }
                      ]
                    }
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "Scheme": {
          "documentation": " The two URI schemes for HTTP\n\n",
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": null,
              "name": "Http",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": null,
              "name": "Https",
              "parameters": [],
              "deprecation": null
            }
          ]
        }
      },
      "constants": {},
      "functions": {
        "method_to_string": {
          "documentation": null,
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Method",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "String",
            "package": "",
            "module": "gleam",
            "parameters": []
          }
        },
        "parse_content_disposition": {
          "documentation": null,
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "ContentDisposition",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "parse_link_header": {
          "documentation": " Parse a Link header value into its component links and parameters.\n\n Parses the syntax described by\n [RFC 8288](https://www.rfc-editor.org/rfc/rfc8288.html).\n Link headers are commonly used in REST APIs for pagination and resource\n navigation. For example, an API might return:\n\n ```\n Link: <https://api.example.com/items?page=2>; rel=\"next\",\n       <https://api.example.com/items?page=5>; rel=\"last\"\n ```\n\n Parameters are returned in the order they appear. Duplicate parameters\n (such as multiple `rel` or `title` values) are preserved as-is; it is\n the caller's responsibility to select the appropriate value, for example\n by using `list.find` to get the first occurrence.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "List",
                "package": "",
                "module": "gleam",
                "parameters": [
                  {
                    "kind": "named",
                    "name": "HeaderLink",
                    "package": "gleam_http",
                    "module": "gleam/http",
                    "parameters": []
                  }
                ]
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "parse_method": {
          "documentation": null,
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "Method",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "parse_multipart_body": {
          "documentation": " Parse the body for part of a multipart message, as defined in RFC 2045. The\n body is everything until the next boundary. This function is generally to be\n called after calling `parse_multipart_headers` for a given part.\n\n This function will accept input of any size, it is up to the caller to limit\n it if needed.\n\n To enable streaming parsing of multipart messages, this function will return\n a continuation if there is not enough data to fully parse the body, along\n with the data that has been parsed so far. Further information is available\n in the documentation for `MultipartBody`.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "BitArray",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "MultipartBody",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "parse_multipart_headers": {
          "documentation": " Parse the headers for part of a multipart message, as defined in RFC 2045.\n\n This function skips any preamble before the boundary. The preamble may be\n retrieved using `parse_multipart_body`.\n\n This function will accept input of any size, it is up to the caller to limit\n it if needed.\n\n To enable streaming parsing of multipart messages, this function will return\n a continuation if there is not enough data to fully parse the headers.\n Further information is available in the documentation for `MultipartBody`.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "BitArray",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "MultipartHeaders",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "scheme_from_string": {
          "documentation": " Parse a HTTP scheme from a string\n\n # Examples\n\n ```gleam\n assert Ok(Http) == scheme_from_string(\"http\")\n assert Error(Nil) == scheme_from_string(\"ftp\")\n ```\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "Scheme",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "scheme_to_string": {
          "documentation": " Convert a scheme into a string.\n\n # Examples\n\n ```gleam\n assert \"http\" == scheme_to_string(Http)\n assert \"https\" == scheme_to_string(Https)\n ```\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Scheme",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "String",
            "package": "",
            "module": "gleam",
            "parameters": []
          }
        }
      }
    },
    "gleam/http/cookie": {
      "documentation": [],
      "type-aliases": {},
      "types": {
        "Attributes": {
          "documentation": " Attributes of a cookie when sent to a client in the `set-cookie` header.\n",
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": null,
              "name": "Attributes",
              "parameters": [
                {
                  "label": "max_age",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "Int",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                },
                {
                  "label": "domain",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                },
                {
                  "label": "path",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                },
                {
                  "label": "secure",
                  "type": {
                    "kind": "named",
                    "name": "Bool",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "http_only",
                  "type": {
                    "kind": "named",
                    "name": "Bool",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "same_site",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "SameSitePolicy",
                        "package": "gleam_http",
                        "module": "gleam/http/cookie",
                        "parameters": []
                      }
                    ]
                  }
                }
              ],
              "deprecation": null
            }
          ]
        },
        "SameSitePolicy": {
          "documentation": " Policy options for the SameSite cookie attribute\n\n https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite\n",
          "deprecation": null,
          "parameters": 0,
          "constructors": [
            {
              "documentation": null,
              "name": "Lax",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": null,
              "name": "Strict",
              "parameters": [],
              "deprecation": null
            },
            {
              "documentation": null,
              "name": "None",
              "parameters": [],
              "deprecation": null
            }
          ]
        }
      },
      "constants": {},
      "functions": {
        "defaults": {
          "documentation": " Helper to create sensible default attributes for a set cookie.\n\n https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Attributes\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Scheme",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Attributes",
            "package": "gleam_http",
            "module": "gleam/http/cookie",
            "parameters": []
          }
        },
        "parse": {
          "documentation": " Parse a list of cookies from a header string. Any malformed cookies will be\n discarded.\n\n ## Backwards compatibility\n\n RFC 6265 states that cookies in the cookie header should be separated by a\n `;`, however this function will also accept a `,` separator to remain\n compatible with the now-deprecated RFC 2965, and any older software\n following that specification.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "List",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "tuple",
                "elements": [
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  },
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                ]
              }
            ]
          }
        },
        "set_header": {
          "documentation": null,
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Attributes",
                "package": "gleam_http",
                "module": "gleam/http/cookie",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "String",
            "package": "",
            "module": "gleam",
            "parameters": []
          }
        }
      }
    },
    "gleam/http/request": {
      "documentation": [],
      "type-aliases": {},
      "types": {
        "Request": {
          "documentation": " A HTTP request.\n\n The body of the request is parameterised. The HTTP server or client you are\n using will have a particular set of types it supports for the body.\n\n",
          "deprecation": null,
          "parameters": 1,
          "constructors": [
            {
              "documentation": null,
              "name": "Request",
              "parameters": [
                {
                  "label": "method",
                  "type": {
                    "kind": "named",
                    "name": "Method",
                    "package": "gleam_http",
                    "module": "gleam/http",
                    "parameters": []
                  }
                },
                {
                  "label": "headers",
                  "type": {
                    "kind": "named",
                    "name": "List",
                    "package": "",
                    "module": "gleam",
                    "parameters": [
                      {
                        "kind": "tuple",
                        "elements": [
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          },
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          }
                        ]
                      }
                    ]
                  }
                },
                {
                  "label": "body",
                  "type": {
                    "kind": "variable",
                    "id": 0
                  }
                },
                {
                  "label": "scheme",
                  "type": {
                    "kind": "named",
                    "name": "Scheme",
                    "package": "gleam_http",
                    "module": "gleam/http",
                    "parameters": []
                  }
                },
                {
                  "label": "host",
                  "type": {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "port",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "Int",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                },
                {
                  "label": "path",
                  "type": {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "query",
                  "type": {
                    "kind": "named",
                    "name": "Option",
                    "package": "gleam_stdlib",
                    "module": "gleam/option",
                    "parameters": [
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                }
              ],
              "deprecation": null
            }
          ]
        }
      },
      "constants": {},
      "functions": {
        "from_uri": {
          "documentation": " Construct a request from a URI.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Uri",
                "package": "gleam_stdlib",
                "module": "gleam/uri",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                ]
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "get_cookies": {
          "documentation": " Fetch the cookies sent in a request.\n\n Note badly formed cookie pairs will be ignored.\n RFC6265 specifies that invalid cookie names/attributes should be ignored.\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "List",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "tuple",
                "elements": [
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  },
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                ]
              }
            ]
          }
        },
        "get_header": {
          "documentation": " Get the value for a given header.\n\n If the request does not have that header then `Error(Nil)` is returned.\n\n Header keys are always lowercase in `gleam_http`. To use any uppercase\n letter is invalid.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "get_query": {
          "documentation": " Decode the query of a request.\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "List",
                "package": "",
                "module": "gleam",
                "parameters": [
                  {
                    "kind": "tuple",
                    "elements": [
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      },
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                ]
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "map": {
          "documentation": " Update the body of a request using a given function.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ],
                "return": {
                  "kind": "variable",
                  "id": 1
                }
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 1
              }
            ]
          }
        },
        "new": {
          "documentation": " A request with commonly used default values. This request can be used as\n an initial value and then update to create the desired request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "path_segments": {
          "documentation": " Return the non-empty segments of a request path.\n\n # Examples\n\n ```gleam\n > new()\n > |> set_path(\"/one/two/three\")\n > |> path_segments\n [\"one\", \"two\", \"three\"]\n ```\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "List",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "prepend_header": {
          "documentation": " Prepend the header with the given value under the given header key.\n\n Similar to `set_header` except if the header already exists it prepends\n another header with the same key.\n\n Header keys are always lowercase in `gleam_http`. To use any uppercase\n letter is invalid.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "remove_cookie": {
          "documentation": " Remove a cookie from a request\n\n Remove a cookie from the request. If no cookie is found return the request\n unchanged. This will not remove the cookie from the client.\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_body": {
          "documentation": " Set the body of the request, overwriting any existing body.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "variable",
                "id": 1
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 1
              }
            ]
          }
        },
        "set_cookie": {
          "documentation": " Set a cookie on a request, replacing any previous cookie with that name.\n\n All cookies should be stored in a single header named `cookie`.\n There should be at most one header with the name `cookie`, otherwise this\n function cannot guarentee that previous cookies with the same name are\n replaced.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_header": {
          "documentation": " Set the header with the given value under the given header key.\n\n If already present, it is replaced.\n\n Header keys are always lowercase in `gleam_http`. To use any uppercase\n letter is invalid.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_host": {
          "documentation": " Set the host of the request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_method": {
          "documentation": " Set the method of the request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Method",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_path": {
          "documentation": " Set the path of the request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_port": {
          "documentation": " Set the port of the request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Int",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_query": {
          "documentation": " Set the query of the request.\n Query params will be percent encoded before being added to the Request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "List",
                "package": "",
                "module": "gleam",
                "parameters": [
                  {
                    "kind": "tuple",
                    "elements": [
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      },
                      {
                        "kind": "named",
                        "name": "String",
                        "package": "",
                        "module": "gleam",
                        "parameters": []
                      }
                    ]
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_scheme": {
          "documentation": " Set the scheme (protocol) of the request.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Scheme",
                "package": "gleam_http",
                "module": "gleam/http",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Request",
            "package": "gleam_http",
            "module": "gleam/http/request",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "to": {
          "documentation": " Construct a request from a URL string\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                ]
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "to_uri": {
          "documentation": " Return the uri that a request was sent to.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Uri",
            "package": "gleam_stdlib",
            "module": "gleam/uri",
            "parameters": []
          }
        }
      }
    },
    "gleam/http/response": {
      "documentation": [],
      "type-aliases": {},
      "types": {
        "Response": {
          "documentation": " A HTTP response.\n\n The body of the request is parameterised. The HTTP server or client you are\n using will have a particular set of types it supports for the body.\n\n",
          "deprecation": null,
          "parameters": 1,
          "constructors": [
            {
              "documentation": null,
              "name": "Response",
              "parameters": [
                {
                  "label": "status",
                  "type": {
                    "kind": "named",
                    "name": "Int",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                },
                {
                  "label": "headers",
                  "type": {
                    "kind": "named",
                    "name": "List",
                    "package": "",
                    "module": "gleam",
                    "parameters": [
                      {
                        "kind": "tuple",
                        "elements": [
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          },
                          {
                            "kind": "named",
                            "name": "String",
                            "package": "",
                            "module": "gleam",
                            "parameters": []
                          }
                        ]
                      }
                    ]
                  }
                },
                {
                  "label": "body",
                  "type": {
                    "kind": "variable",
                    "id": 0
                  }
                }
              ],
              "deprecation": null
            }
          ]
        }
      },
      "constants": {},
      "functions": {
        "expire_cookie": {
          "documentation": " Expire a cookie value for a client\n\n Note: The attributes value should be the same as when the response cookie was set.\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Attributes",
                "package": "gleam_http",
                "module": "gleam/http/cookie",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "get_cookies": {
          "documentation": " Fetch the cookies sent in a response.\n\n Badly formed cookies will be discarded.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "List",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "tuple",
                "elements": [
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  },
                  {
                    "kind": "named",
                    "name": "String",
                    "package": "",
                    "module": "gleam",
                    "parameters": []
                  }
                ]
              }
            ]
          }
        },
        "get_header": {
          "documentation": " Get the value for a given header.\n\n If the response does not have that header then `Error(Nil)` is returned.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              },
              {
                "kind": "named",
                "name": "Nil",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "map": {
          "documentation": " Update the body of a response using a given function.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ],
                "return": {
                  "kind": "variable",
                  "id": 1
                }
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 1
              }
            ]
          }
        },
        "new": {
          "documentation": " Construct an empty Response.\n\n The body type of the returned response is `String` and could be set with a\n call to `set_body`.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Int",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "prepend_header": {
          "documentation": " Prepend the header with the given value under the given header key.\n\n Similar to `set_header` except if the header already exists it prepends\n another header with the same key.\n\n Header keys are always lowercase in `gleam_http`. To use any uppercase\n letter is invalid.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "redirect": {
          "documentation": " Create a response that redirects to the given uri.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            ]
          }
        },
        "set_body": {
          "documentation": " Set the body of the response, overwriting any existing body.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "variable",
                "id": 1
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 1
              }
            ]
          }
        },
        "set_cookie": {
          "documentation": " Set a cookie value for a client\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Attributes",
                "package": "gleam_http",
                "module": "gleam/http/cookie",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "set_header": {
          "documentation": " Set the header with the given value under the given header key.\n\n If the response already has that key, it is replaced.\n\n Header keys are always lowercase in `gleam_http`. To use any uppercase\n letter is invalid.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Response",
            "package": "gleam_http",
            "module": "gleam/http/response",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ]
          }
        },
        "try_map": {
          "documentation": " Update the body of a response using a given result returning function.\n\n If the given function returns an `Ok` value the body is set, if it returns\n an `Error` value then the error is returned.\n\n",
          "deprecation": null,
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            },
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ],
                "return": {
                  "kind": "named",
                  "name": "Result",
                  "package": "",
                  "module": "gleam",
                  "parameters": [
                    {
                      "kind": "variable",
                      "id": 1
                    },
                    {
                      "kind": "variable",
                      "id": 2
                    }
                  ]
                }
              }
            }
          ],
          "return": {
            "kind": "named",
            "name": "Result",
            "package": "",
            "module": "gleam",
            "parameters": [
              {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 1
                  }
                ]
              },
              {
                "kind": "variable",
                "id": 2
              }
            ]
          }
        }
      }
    },
    "gleam/http/service": {
      "documentation": [],
      "type-aliases": {
        "Middleware": {
          "documentation": null,
          "deprecation": {
            "message": "Use middleware packages such as Wisp or Glen instead"
          },
          "parameters": 4,
          "alias": {
            "kind": "fn",
            "parameters": [
              {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "named",
                    "name": "Request",
                    "package": "gleam_http",
                    "module": "gleam/http/request",
                    "parameters": [
                      {
                        "kind": "variable",
                        "id": 0
                      }
                    ]
                  }
                ],
                "return": {
                  "kind": "named",
                  "name": "Response",
                  "package": "gleam_http",
                  "module": "gleam/http/response",
                  "parameters": [
                    {
                      "kind": "variable",
                      "id": 1
                    }
                  ]
                }
              }
            ],
            "return": {
              "kind": "fn",
              "parameters": [
                {
                  "kind": "named",
                  "name": "Request",
                  "package": "gleam_http",
                  "module": "gleam/http/request",
                  "parameters": [
                    {
                      "kind": "variable",
                      "id": 2
                    }
                  ]
                }
              ],
              "return": {
                "kind": "named",
                "name": "Response",
                "package": "gleam_http",
                "module": "gleam/http/response",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 3
                  }
                ]
              }
            }
          }
        },
        "Service": {
          "documentation": null,
          "deprecation": {
            "message": "Use middleware packages such as Wisp or Glen instead"
          },
          "parameters": 2,
          "alias": {
            "kind": "fn",
            "parameters": [
              {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            ],
            "return": {
              "kind": "named",
              "name": "Response",
              "package": "gleam_http",
              "module": "gleam/http/response",
              "parameters": [
                {
                  "kind": "variable",
                  "id": 1
                }
              ]
            }
          }
        }
      },
      "types": {},
      "constants": {},
      "functions": {
        "map_response_body": {
          "documentation": null,
          "deprecation": {
            "message": "Use middleware packages such as Wisp or Glen instead"
          },
          "implementations": {
            "gleam": true,
            "uses-erlang-externals": false,
            "uses-javascript-externals": false,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ],
                "return": {
                  "kind": "named",
                  "name": "Response",
                  "package": "gleam_http",
                  "module": "gleam/http/response",
                  "parameters": [
                    {
                      "kind": "variable",
                      "id": 1
                    }
                  ]
                }
              }
            },
            {
              "label": "with",
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 1
                  }
                ],
                "return": {
                  "kind": "variable",
                  "id": 2
                }
              }
            }
          ],
          "return": {
            "kind": "fn",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ],
            "return": {
              "kind": "named",
              "name": "Response",
              "package": "gleam_http",
              "module": "gleam/http/response",
              "parameters": [
                {
                  "kind": "variable",
                  "id": 2
                }
              ]
            }
          }
        },
        "method_override": {
          "documentation": null,
          "deprecation": {
            "message": "Use middleware packages such as Wisp or Glen instead"
          },
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "named",
                    "name": "Request",
                    "package": "gleam_http",
                    "module": "gleam/http/request",
                    "parameters": [
                      {
                        "kind": "variable",
                        "id": 0
                      }
                    ]
                  }
                ],
                "return": {
                  "kind": "variable",
                  "id": 1
                }
              }
            }
          ],
          "return": {
            "kind": "fn",
            "parameters": [
              {
                "kind": "named",
                "name": "Request",
                "package": "gleam_http",
                "module": "gleam/http/request",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ]
              }
            ],
            "return": {
              "kind": "variable",
              "id": 1
            }
          }
        },
        "prepend_response_header": {
          "documentation": null,
          "deprecation": {
            "message": "Use middleware packages such as Wisp or Glen instead"
          },
          "implementations": {
            "gleam": false,
            "uses-erlang-externals": true,
            "uses-javascript-externals": true,
            "can-run-on-erlang": true,
            "can-run-on-javascript": true
          },
          "parameters": [
            {
              "label": null,
              "type": {
                "kind": "fn",
                "parameters": [
                  {
                    "kind": "variable",
                    "id": 0
                  }
                ],
                "return": {
                  "kind": "named",
                  "name": "Response",
                  "package": "gleam_http",
                  "module": "gleam/http/response",
                  "parameters": [
                    {
                      "kind": "variable",
                      "id": 1
                    }
                  ]
                }
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            },
            {
              "label": null,
              "type": {
                "kind": "named",
                "name": "String",
                "package": "",
                "module": "gleam",
                "parameters": []
              }
            }
          ],
          "return": {
            "kind": "fn",
            "parameters": [
              {
                "kind": "variable",
                "id": 0
              }
            ],
            "return": {
              "kind": "named",
              "name": "Response",
              "package": "gleam_http",
              "module": "gleam/http/response",
              "parameters": [
                {
                  "kind": "variable",
                  "id": 1
                }
              ]
            }
          }
        }
      }
    }
  }
}