LodeHematite's packages

$ lode info http

http 0.3.0
HTTP for Hematite: a server, and a client. The server answers each request with a method of the app's, a handler, which takes the request and gives a response. It also serves folders of files, and, while an app is being worked on, reloads its pages when their files change. The client makes requests to other servers. Both are Rust underneath (native/).

kept by Hematite, no licence yet, for Hematite 0.1
from file:///home/crispy/Code/hematite/packages/http

checks
  ok      tests (8)
  ok      formatted
  ok      documented
  ok      no needs by path
  failed  a licence: there's no LICENSE: say how others may use it
  ok      the Hematite it's for: 0.1
  ok      version 0.3.0: it adds to what 0.2.1 exports

exports
  record Upload(field: String, name: String, content_type: String, size: Int, path: String)
  record Request(method: String, path: String, query: String, headers: {String: String}, body: String, files: [Upload] = ..., address: String = ..., secure: Boolean = ...)
  Request#header(name: String): String?
  enum Redirect: see_other, temporary_redirect, permanent_redirect, moved_permanently, found
  record Response(status: Int, headers: {String: String}, body: String, bytes: Bytes? = ...)
  Response.bytes(content: Bytes, content_type: String, status: Int, headers: {String: String} = ...): Response
  Response.html(body: Html, status: Int, headers: {String: String} = ...): Response
  Response.text(body: String, status: Int, headers: {String: String} = ...): Response
  Response.json(body: String, status: Int, headers: {String: String} = ...): Response
  Response.redirect(location: String, status: Redirect, headers: {String: String} = ...): Response
  record Live(path: String, folders: [String] = ...)
  record Limits(body: Int = ..., url: Int = ..., headers: Int = ..., header_bytes: Int = ..., fields: Int = ..., files: Int = ..., connections: Int = ..., reading: Int = ..., sending: Int = ...)
  record Proxies(trusted: [String] = ..., address: String = ..., scheme: String = ...)
  class HTTP
  HTTP.serve(port: Int, handle: (Request): Response, folders: {String: String} = ..., live: Live? = ..., address: String = ..., hosts: [String] = ..., limits: Limits = ..., proxies: Proxies = ..., drain: Int = ...): !
  HTTP.asset(path: String): String
  HTTP.get(url: String, headers: {String: String} = ...): Response!
  HTTP.post(url: String, body: String = ..., headers: {String: String} = ...): Response!
  HTTP.put(url: String, body: String = ..., headers: {String: String} = ...): Response!
  HTTP.patch(url: String, body: String = ..., headers: {String: String} = ...): Response!
  HTTP.delete(url: String, headers: {String: String} = ...): Response!

versions
  0.3.0  2026-11-29  sha256-e6bb8a0e9e57
  0.2.1  2026-11-27  sha256-ed4c1b6447ed
  0.2.0  2026-11-27  sha256-511f80570f8f
  0.1.0  2026-11-27  sha256-11a1aec7e3d5

add it
  lode add http

also /http.json, /http.txt