An open API service indexing awesome lists of open source software.

https://github.com/lyzev/network4k

A library for networking in Kotlin.
https://github.com/lyzev/network4k

http https network tcp udp

Last synced: 11 months ago
JSON representation

A library for networking in Kotlin.

Awesome Lists containing this project

README

          

Network4K

A library for networking in Kotlin.


Discord



GitHub last commit
GitHub commit activity


GitHub code size in bytes
GitHub contributors

## Usage
[![](https://jitpack.io/v/Lyzev/Network4K.svg?label=Release)](https://jitpack.io/#Lyzev/Network4K)

### Import

Replace `${version}` with the current version!

Gradle KTS

```kt
repositories {
maven("https://jitpack.io")
}

dependencies {
implementation("com.github.Lyzev:Network4K:${version}")
}
```

Gradle Groovy

```groovy
repositories {
maven { url 'https://jitpack.io' }
}

dependencies {
implementation 'com.github.Lyzev:Network4K:${version}'
}
```

Maven

```xml


jitpack.io
https://jitpack.io


com.github.Lyzev
Network4K
${version}

```

Raw Jar

1. Go to the [release page](https://github.com/Lyzev/Network4K/releases).
2. Download Network4K-${version}-all.jar.
3. Add the jar to your classpath.

### Example

HTTP/HTTPS

Kotlin

```kt
val response = HttpClient.request(HttpMethod.GET, "https://www.google.com")
println(response)
```

Java

```java
HttpResponse response = HttpClient.request(HttpMethod.GET, "https://www.google.com");
System.out.println(response);
```

## Documentation
You can find the documentation [here](https://lyzev.github.io/Network4K/dokka).

## Code Quality Monitoring
You can find the qodana report [here](https://lyzev.github.io/Network4K/qodana).

## Bugs and Suggestions
Bug reports and suggestions should be made in this repo's [issue tracker](https://github.com/Lyzev/Network4K/issues) 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.