Skip to content

Raw response promises #141

Closed
Closed
@luisrpfigueiredo

Description

@luisrpfigueiredo

When accessing the graph API response, we can pass a third option to the callback function in order to be able get a raw response, granting access to the headers.

Is there a way to do so through promises? If not, it would be nice to have, as using callbacks is... painful. A potential solution would be to have a .setResponseType('raw') or similar option available.

Edit: I found the .responseType functionality. Passing in MicrosoftGraph.ResponseType.RAW, or the hardcoded string "raw" is not working. Has this been implemented yet? ResponseType.RAW is not defined.

For reference, I'm trying to get the location header of the graph response after accessing the /items/{itemId}/copy endpoint. I know the request is successful because the items are being copied, just the response is always undefined.

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