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.
- Host: GitHub
- URL: https://github.com/lyzev/network4k
- Owner: Lyzev
- License: agpl-3.0
- Created: 2022-04-04T20:17:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T14:23:19.000Z (almost 3 years ago)
- Last Synced: 2023-03-04T18:32:49.245Z (almost 3 years ago)
- Topics: http, https, network, tcp, udp
- Language: Kotlin
- Homepage: https://lyzev.github.io/
- Size: 2.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Network4K
A library for networking in Kotlin.
## Usage
[](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.