Skip to content

Nock compatibility #575

@mikicho

Description

@mikicho

Transfer Encoding @mikicho

support transfer-encoding: chunked

#596

  • should pass filteringPath options
  • should pass filteringRequestBody options
  • match body with form multipart
  • records and replays objects correctly
  • records and replays correctly with filteringRequestBody
  • records and replays gzipped nocks correctly
  • records and replays the response body

preemtive timeout

We decided to remove this feature from Nock. It not relevant for fetch.
We should consider if/how we want to support this for httpClient. this is a nice feature.

  • emits a timeout - with setTimeout
  • emits a timeout - with options.timeout
  • emits a timeout - with Agent.timeout
  • emits a timeout - options.timeout takes precedence over Agent.timeout

Headers

  • folds duplicate headers the same as Node
  • when keys are duplicated, is evaluated once per input field name, in correct order

Recorder

  • does not record requests from previous sessions
  • logs recorded objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions