Skip to content

Cookie transport #7

Description

@vitalets

Along with custom header transport, it would be useful to support cookie transport of mocks. It will make easier integration with test runners and other tools (e.g. browser extensions).

Proof of concept

We can serialize mocks into a cookie named x-mock-request and check this cookie on server.

Caveats

Header is stateless, but cookie is stateful. Maybe we need to provide methods to clear the mocking cookie.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions