Skip to content

Commit

Permalink
feat: add field byteLength to httpx.Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
L-jasmine committed Dec 26, 2023
1 parent 983629e commit dff2b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal_module/httpx/js_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl JsClassDef for Buffer {

const FIELDS: &'static [crate::JsClassField<Self::RefType>] = &[
("length", Self::js_length, None),
("byteLength", Self::js_length, None),
("buffer", Self::js_buffer, None),
];

Expand Down

0 comments on commit dff2b91

Please sign in to comment.