Skip to content

Commit

Permalink
feature: Add ability to get existing query params (#9)
Browse files Browse the repository at this point in the history
- You can now get query params already set on the builder without converting to a query string using `getQueryParameters()`. This returns an ordered map contains a list of all values for each query parameter name.
- Also add `toURI()` and `toURL()` convenience methods.

This also fixes an issue in how query parameters are parsed, where "value-less" parameters are being discarded. (e.g. /foo/bar?valueless).
  • Loading branch information
sagebind authored May 9, 2019
1 parent 0b54439 commit 694c7ed
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 190 deletions.
21 changes: 15 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id 'groovy'
id 'idea'
id 'java'
id 'maven-publish'
Expand All @@ -10,19 +11,27 @@ plugins {
group = 'com.widen'
ext.repo = 'https://github.com/Widen/' + project.name

sourceCompatibility = 1.6
targetCompatibility = 1.6
sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
jcenter()
}

dependencies {
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.54'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.54'
compileOnly 'org.projectlombok:lombok:1.18.2'
annotationProcessor 'org.projectlombok:lombok:1.18.2'

testCompile group: 'junit', name: 'junit', version: '4.8.2'
testCompile group: 'commons-io', name: 'commons-io', version: '2.4'
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compile 'org.bouncycastle:bcpkix-jdk15on:1.54'

testCompile 'cglib:cglib-nodep:3.2.5'
testCompile 'commons-io:commons-io:2.4'
testCompile 'junit:junit:4.8.2'
testCompile 'org.codehaus.groovy:groovy-all:2.4.9'
testCompile 'org.objenesis:objenesis:2.6'
testCompile 'org.slf4j:slf4j-simple:1.7.25'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
}

bintray {
Expand Down
Loading

0 comments on commit 694c7ed

Please sign in to comment.