Skip to content

Switch on dynamic HTTP headers in Ktor adapters by default #30

@ermadmi78

Description

@ermadmi78

In #26 issue it became possible to switch on dynamic HTTP headers in Ktor adapters. But by default this feature is disabled. It would be great to enable dynamic HTTP headers by default in Kobby 2.0 release.

Attention! It is breaking change!!! To return to previous settings, use:

Gradle:

plugins {
    kotlin("jvm")
    id("io.github.ermadmi78.kobby")
}

kobby {
    kotlin {
        adapter {
            ktor {
                dynamicHttpHeaders = false
            }
        }
    }
}

Maven:

<build>
    <plugins>
        <plugin>
            <groupId>io.github.ermadmi78</groupId>
            <artifactId>kobby-maven-plugin</artifactId>
            <version>1.6.0</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate-kotlin</goal>
                    </goals>
                    <configuration>
                        <kotlin>
                            <adapter>
                                <ktor>
                                    <dynamicHttpHeaders>false</dynamicHttpHeaders>
                                </ktor>
                            </adapter>
                        </kotlin>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions