pub struct Stub { /* private fields */ }Expand description
A Durable Object stub is a client object used to send requests to a remote Durable Object.
Implementations§
source§impl Stub
impl Stub
sourcepub async fn fetch_with_request(&self, req: Request) -> Result<Response>
pub async fn fetch_with_request(&self, req: Request) -> Result<Response>
Send an internal Request to the Durable Object to which the stub points.
sourcepub async fn fetch_with_str(&self, url: &str) -> Result<Response>
pub async fn fetch_with_str(&self, url: &str) -> Result<Response>
Construct a Request from a URL to the Durable Object to which the stub points.