We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ec214 commit 3f4efefCopy full SHA for 3f4efef
1 file changed
src/http/discover.ts
@@ -0,0 +1,16 @@
1
+import { Manifest } from '../base/Executor'
2
+import { HttpAddress } from '../base/Transports'
3
+import HttpClient from './HttpClient'
4
+
5
+/**
6
+ * Discover `HttpServer` instances.
7
+ *
8
+ * Currently just fetches a `Manifest` from a single `HttpAddress`.
9
+ */
10
+export default async function discover(
11
+ address?: HttpAddress
12
+): Promise<Manifest[]> {
13
+ const client = new HttpClient(address)
14
+ const manifest = await client.manifest()
15
+ return [manifest]
16
+}
0 commit comments