Skip to content

Using Pretender with fetch. #60

@rwjblue

Description

@rwjblue

It would be nice to be able to use fetch instead of XMLHttpRequest. When using the non-native fetch polyfil Pretender would likely still work (because the polyfill uses XMLHttpRequest to implement fetch), but it doesn't seem that native fetch requests would be handled by Pretender.

Spec: https://fetch.spec.whatwg.org

This issue is mostly to lay out a path forward.

/cc @cowboyd @toranb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions