Module: models/http/httpRequest

Transforms a node http/s request to a simplified mountebank http/s request
that will be shown in the API

Source:

Methods

(inner) createFrom(container) → {Object}

Creates the API-friendly http/s request

Parameters:
Name Type Description
container Object

An object containing the raw http/s request

Source:
Returns:
  • Promise resolving to the simplified request
Type
Object

(inner) createTestRequest() → {Object}

Returns the request that will be used during dry run validation

Source:
Returns:
Type
Object