Skip to content

Feat Request: Allow more control over response type #407

Description

@atomicpages

When fetching data from static image, it might be nice to give users more control over the response type. For example:

import mbClient from "@mapbox/mapbox-sdk";
import StaticImage from "@mapbox/mapbox-sdk/services/static";

const client = mbClient({accessToken: "..."});
const staticImageService = StaticImage(client);

staticImageService.getStaticImage({ ... })
  .send({ responseType: 'blob' })
  .then(res => {
    // do something with res
  });

I poked around the code and didn't find any way to override the response type. I'm happy to send a PR for this. LMK 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions