A library for networking in Kotlin.
Replace ${version}
with the current version!
Gradle KTS
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.Lyzev:Network4K:${version}")
}
Gradle Groovy
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.Lyzev:Network4K:${version}'
}
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.Lyzev</groupId>
<artifactId>Network4K</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
Raw Jar
- Go to the release page.
- Download Network4K-${version}-all.jar.
- Add the jar to your classpath.
HTTP/HTTPS
Kotlin
val response = HttpClient.request(HttpMethod.GET, "https://www.google.com")
println(response)
Java
HttpResponse response = HttpClient.request(HttpMethod.GET, "https://www.google.com");
System.out.println(response);
You can find the documentation here.
You can find the qodana report here.
Bug reports and suggestions should be made in this repo's issue tracker using the templates provided. Please provide as much information as you can to best help us understand your issue and give a better chance of it being resolved.