Skip to content

Lyzev/Network4K

Repository files navigation

Network4K

A library for networking in Kotlin.

Discord

GitHub last commit GitHub commit activity
GitHub code size in bytes GitHub contributors

Usage

Import

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
  1. Go to the release page.
  2. Download Network4K-${version}-all.jar.
  3. Add the jar to your classpath.

Example

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);

Documentation

You can find the documentation here.

Code Quality Monitoring

You can find the qodana report here.

Bugs and Suggestions

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.