Package dev.gmitch215.bytebox.binding
Interface DurableObjectNamespace.DurableObjectStub
- All Superinterfaces:
org.teavm.jso.JSObject
- Enclosing interface:
DurableObjectNamespace
public static interface DurableObjectNamespace.DurableObjectStub
extends org.teavm.jso.JSObject
A handle on one instance.
Every call here crosses to wherever the instance lives, so it blocks. An instance's own
methods are reachable through rpc(String, TSObject...) when it extends Cloudflare's
DurableObject base class.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseSends a request to the instance.default ResponseSends a request to the instance by URL.getId()Returns this instance's id.default TSObjectCalls one of the instance's own methods.org.teavm.jso.core.JSPromise<Response> org.teavm.jso.core.JSPromise<Response> Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
fetch
Sends a request to the instance.- Parameters:
request- the request- Returns:
- the instance's response
-
fetch
Sends a request to the instance by URL.- Parameters:
url- the URL, whose host is ignored- Returns:
- the instance's response
-
rpc
Calls one of the instance's own methods.- Parameters:
method- the method nameargs- the arguments- Returns:
- what the method returned
-
getId
Returns this instance's id.- Returns:
- this instance's id
-
send
-
send
-