Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

How to send body in a Post request #25

Closed
loonix opened this issue Jun 29, 2020 · 1 comment
Closed

How to send body in a Post request #25

loonix opened this issue Jun 29, 2020 · 1 comment

Comments

@loonix
Copy link

loonix commented Jun 29, 2020

Describe the bug
I seem to be unable to send the body the http request

To Reproduce

const req = await Http.request({
      method: 'GET',
      headers: headers,
      url: this.apiLink + '/tests',
      body: paths
    });
    return req.data;

Smartphone (please complete the following information):

  • Device: Iphone Emulator

Is it possible to send it as body? or is it through data?

@mlynch
Copy link
Contributor

mlynch commented Jul 2, 2020

The field is data that you need

@mlynch mlynch closed this as completed Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants