Request.simulatedPost constructor

Request.simulatedPost(String internalPath, RequestParams postParams, { String sessionId, String id, RequestParams queryParams, SimulatedHttpHeaders headers, List<Cookie> cookies, String bodyStr, List<int> bodyBytes })

Constructor for a simulated Post request.

Implementation

Request.simulatedPost(String internalPath, this.postParams,
    {String sessionId,
    String id,
    RequestParams queryParams,
    SimulatedHttpHeaders headers,
    List<Cookie> cookies,
    String bodyStr,
    List<int> bodyBytes})
    : _id = id,
      _coreRequest = new _CoreRequestSimulated('POST', internalPath,
          sessionId: sessionId,
          queryParams: queryParams,
          headers: headers,
          cookies: cookies,
          bodyStr: bodyStr,
          bodyBytes: bodyBytes),
      _coreResponse = new _CoreResponseSimulated() {
  _simulatedConstructorCommon(queryParams);
}