UNPKG

rest-in-contract

Version:

Rest API Contract. This module is the Contract Server nodejs module for `rest-in-contract` project.

13 lines (11 loc) 327 B
'use strict'; class Request { constructor(props = {}) { this.method = props.method || 'GET'; this.urlPath = props.urlPath || '/'; this.queryParameters = props.queryParameters || []; this.body = props.body || ''; this.headers = props.headers || {}; } } module.exports = Request;