diff --git a/apps/api.json b/apps/api.json index 0c05370c..e3a968d8 100644 --- a/apps/api.json +++ b/apps/api.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📜", - "previous": "&BEf0nraBdHk/+PWqx6tOSu5rheWVaxaL7orAOz3285M=.sha256" + "previous": "&sJqeyYjHys6Z8IqqtZ2ij2ZC1E2xieu/FU/u2hE+O1U=.sha256" } diff --git a/apps/api/app.js b/apps/api/app.js index 95efa2c0..6b12eb97 100644 --- a/apps/api/app.js +++ b/apps/api/app.js @@ -55,6 +55,9 @@ app.setDocument(` ${markdown(docs.docs.global)} + ${[...treeify('', globalThis)].map(x => document(x)).join('\n')} ${markdown(docs.docs.database)} diff --git a/apps/api/docs.js b/apps/api/docs.js index 037bf240..167e784e 100644 --- a/apps/api/docs.js +++ b/apps/api/docs.js @@ -195,18 +195,6 @@ Call a function after some delay. * *Number* **timeout** Number of milliseconds to wait before calling the callback function. `; -docs['parseHttpRequest()'] = ` -Parses an HTTP request. -### Parameters - * *Uint8Array* **request** The request data. Maybe be partial or contain extra data. The return value will - indicate when and where it is complete. - * *Number* **last_length** The length of the data passed on a previous attempt for the same request, or 0 initially. -### Returns - * *Integer* **-2** if the request is incomplete. - * *Integer* **-1** if the request could not be parsed. - * *Object* An object with **bytes_parsed**, **minor_version**, **path**, and **headers** fields on successful parse. -`; - docs['parseHttpResponse()'] = ` Parses an HTTP response. ### Parameters @@ -219,27 +207,6 @@ Parses an HTTP response. * *Object* An object with **bytes_parsed**, **minor_version**, **status**, **message**, and **headers** fields on successful parse. `; -docs['sha1Digest()'] = ` -Calculates a SHA1 digest. - -Completes synchronously. -### Parameters - * *String* **value** The value for which to calculate the digest. -### Returns -*String* The SHA1 digest of UTF-8 encoded \`value\`. -`; - -docs['maskBytes()'] = ` -Masks bytes for WebSocket communication. - -Completes synchronously. -### Parameters - * *Uint8Array* **bytes** The byte array of data to mask. - * *Uint32* **mask** The mask to apply. -### Returns -*Uint32Array* The masked bytes. -`; - docs['exit()'] = ` Exits the app. But why would you want to do that?