aboutsummaryrefslogtreecommitdiff
path: root/core/http
diff options
context:
space:
mode:
Diffstat (limited to 'core/http')
-rw-r--r--core/http/client.ts4
-rw-r--r--core/http/server.ts1
2 files changed, 1 insertions, 4 deletions
diff --git a/core/http/client.ts b/core/http/client.ts
index a77b616..365aa76 100644
--- a/core/http/client.ts
+++ b/core/http/client.ts
@@ -1,6 +1,5 @@
import "../../util/array.ts";
-import { ParseResult } from "../../language/types.ts";
import API from "../api.ts";
import { ConnectionProps, ConnectionPropsDefault } from "./props.ts";
import { APIRequest, APIRequestParseSentence, APIResponseParseSentence } from "./types.ts";
@@ -13,13 +12,12 @@ import { APIRequest, APIRequestParseSentence, APIResponseParseSentence } from ".
*/
export default class YomikunRemoteAPIClient implements API {
private props: ConnectionProps;
+ ready: Promise<void> = Promise.resolve();
constructor(options?: ConnectionProps) {
this.props = { ...ConnectionPropsDefault, ...options };
}
- async prepare() { }
-
private async request(details: APIRequest) {
var response = await fetch(`http://${this.props.host}:${this.props.port}`, {
method: "POST",
diff --git a/core/http/server.ts b/core/http/server.ts
index b5d6c13..1af8d25 100644
--- a/core/http/server.ts
+++ b/core/http/server.ts
@@ -2,7 +2,6 @@ import { serve } from "https://deno.land/std@0.192.0/http/server.ts";
import "../../util/string.ts";
-import { ParseResult } from "../../language/types.ts";
import YomikunRAWAPI from "../raw/api.ts";
import { ConnectionProps, ConnectionPropsDefault } from "./props.ts";
import { APIRequest, APIRequestParseSentence, APIResponseParseSentence } from "./types.ts";