{"package":{"id":1,"name":"http","description":"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/).","repository":"file:///home/crispy/Code/hematite/packages/http","keeper":"Hematite","licence":null,"newest":"0.3.0","needed_by":1},"versions":[{"id":4,"package":"http","version":"0.3.0","rank":3000000,"commit":"6904a33ee0ae535a2d459bcfc147b9ef33dcf6ad","hash":"sha256-e6bb8a0e9e5775cbf9d5cec8b78c4fe67cce1219b41f089363d58047e397c6c7","hematite":"0.1","needs":[],"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!"],"checks":[{"name":"tests (8)","passed":true,"said":""},{"name":"formatted","passed":true,"said":""},{"name":"documented","passed":true,"said":""},{"name":"no needs by path","passed":true,"said":""},{"name":"a licence","passed":false,"said":"there's no LICENSE: say how others may use it"},{"name":"the Hematite it's for","passed":true,"said":"0.1"},{"name":"version 0.3.0","passed":true,"said":"it adds to what 0.2.1 exports"}],"withdrawn":false,"published":"2026-11-29T09:59:45.000Z"},{"id":3,"package":"http","version":"0.2.1","rank":2000001,"commit":"278161b46bdf045c94c41186275c99b26d479bdb","hash":"sha256-ed4c1b6447ed044f019359d2e3cc78c2128f14681582fd8097f5e343f532d425","hematite":"0.1","needs":[],"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] = ...)","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] = ...)","class HTTP","HTTP.serve(port: Int, handle: (Request): Response, folders: {String: String} = ..., live: Live? = ...): !","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!"],"checks":[],"withdrawn":false,"published":"2026-11-27T18:53:48.000Z"},{"id":2,"package":"http","version":"0.2.0","rank":2000000,"commit":"8deff806f0ae4f69f208ddedc32875d6798b9c73","hash":"sha256-511f80570f8fbf3e3ca83cb3be3f13ac5ae68e0c1a7bf3a456b19440ce5ec443","hematite":"0.1","needs":[],"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] = ...)","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)","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] = ...)","class HTTP","HTTP.serve(port: Int, handle: (Request): Response, folders: {String: String} = ..., live: Live? = ...): !","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!"],"checks":[],"withdrawn":false,"published":"2026-11-27T16:51:08.000Z"},{"id":1,"package":"http","version":"0.1.0","rank":1000000,"commit":"cb670f033ce5abfa18dc9c29835293080449c9a3","hash":"sha256-11a1aec7e3d5064f8c8d61d1fdc2f70a7918ba22fa3e9875467e854f4facb4f6","hematite":"0.1","needs":[],"exports":["record Upload(field: String, name: String, content_type: String, size: Int, path: String)","record WebRequest(method: String, path: String, query: String, headers: {String: String}, body: String, files: [Upload] = ...)","WebRequest#header(name: String): String?","record Response(status: Int, headers: {String: String}, body: String)","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] = ...)","class Web","Web.serve(port: Int, handle: (WebRequest): Response, folders: {String: String} = ..., live: Live? = ...): !","Web.get(url: String, headers: {String: String} = ...): Response!","Web.post(url: String, body: String = ..., headers: {String: String} = ...): Response!","Web.put(url: String, body: String = ..., headers: {String: String} = ...): Response!","Web.patch(url: String, body: String = ..., headers: {String: String} = ...): Response!","Web.delete(url: String, headers: {String: String} = ...): Response!"],"checks":[],"withdrawn":false,"published":"2026-11-27T16:07:15.000Z"}]}