UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

26 lines (19 loc) 418 B
import { Http, ServerCtx } from './http' export class NetworkProxy { http: Http constructor (opts: ServerCtx) { this.http = new Http(opts) } handleHttpRequest (req, res) { this.http.handle(req, res) } handleSourceMapRequest (req, res) { this.http.handleSourceMapRequest(req, res) } setHttpBuffer (buffer) { this.http.setBuffer(buffer) } reset () { this.http.reset() } }