zimicjs / zimic

TypeScript-first HTTP request mocking
https://npmjs.com/package/zimic
MIT License
9 stars 2 forks source link

Omit `HttpInterceptorRequest#clone` and `HttpInterceptorResponse#clone` #325

Closed diego-aquino closed 2 months ago

diego-aquino commented 2 months ago

HttpInterceptorRequest#clone and HttpInterceptorResponse#clone are available because they inherit the native Request and Response classes. However, clone will not work on those objects and should not be exposed in our public API. To clone the request or response, users can use HttpInterceptorRequest#raw#clone and HttpInterceptorResponse#raw#clone.

github-actions[bot] commented 2 months ago

Released in v0.9.0 :tada: