Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Missing doc to add additional headers #664

Open
Guimareshh opened this issue Apr 27, 2021 · 0 comments
Open

Missing doc to add additional headers #664

Guimareshh opened this issue Apr 27, 2021 · 0 comments
Labels

Comments

@Guimareshh
Copy link

Guimareshh commented Apr 27, 2021

Hello, I'm looking for documentation to add additional headers using mapBox. My colleague working on iOS is using MGLNetworkConfiguration class to handle this. But I haven't found any related Android documentation.

By digging into the API I found this:

HttpRequestUtil.setOkHttpClient(
        OkHttpClient.Builder().addInterceptor {
            it.proceed(
                it
                    .request()
                    .newBuilder()
                    .header("test", "test")
                    .build()
            )
        }.build()
    )

Is this the recommended way ?

Thanks for helping!

@stale stale bot added the archived label Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant