在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):http-builder-ng/gradle-http-plugin开源软件地址(OpenSource Url):https://github.com/http-builder-ng/gradle-http-plugin开源编程语言(OpenSource Language):Groovy 61.6%开源软件介绍(OpenSource Introduction):Gradle HTTP Plugin
Quick Links
IntroductionA Gradle plugin providing the ability to define tasks to make HTTP requests using the HttpBuilder-NG client library. The resulting tasks have a clean DSL and will look something like the following: Groovy task notify(type:HttpTask){
config {
request.uri = 'http://something.com'
}
post {
request.uri.path = '/notify'
request.body = [event: 'activated']
response.success {
println 'The event notification was successful'
}
}
} Kotlin tasks {
val notify by registering(HttpTask::class) {
config {
it.request.setUri = "http://something.com"
}
post {
it.request.uri.setPath("/notify")
}
response.success { fromServer, body ->
println("The event notification was successful")
}
}
} InstallingThe plugin is available through the Gradle Plugin Repository and may be applied to your Gradle build with one of the following: plugins {
id "io.github.http-builder-ng.http-plugin" version "0.1.1"
} or buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.io.github.http-builder-ng:http-plugin:0.1.1"
}
}
apply plugin: "io.github.http-builder-ng.http-plugin" BuildingThe project is build with Gradle using the following command:
LicenseThe Gradle HTTP Plugin is licensed under the Apache 2 open source license.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论