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

Missing doc to add additional headers #664

Open
@Guimareshh

Description

@Guimareshh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions