Module: models/tcp/tcpRequest

Transforms a raw tcp request into the API-friendly representation of one

Source:

Methods

(inner) createFrom(request) → {Object}

Transforms the raw tcp request into a mountebank tcp request

Parameters:
Name Type Description
request Object

The raw tcp request

Source:
Returns:
  • A promise resolving to the mountebank tcp request
Type
Object

(inner) createTestRequest() → {Object}

Creates the request used during dry run validation

Source:
Returns:
Type
Object