Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/napi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ pub struct RequestOptions {
///
/// It provides methods to access the HTTP method, URI, headers, and body of
/// the request along with a toJSON method to convert it to a JSON object.
#[napi(js_name = "Request")]
#[napi]
#[derive(Debug, Clone)]
pub struct Request(InnerRequest);

Expand Down Expand Up @@ -942,7 +942,7 @@ pub struct ResponseOptions {
/// }
/// console.log(response.body.toString()); // {"message":"Hello, world!"}
/// ```
#[napi(js_name = "Response")]
#[napi]
pub struct Response(InnerResponse);

#[napi]
Expand Down