Skip to content

Commit

Permalink
Added secondary constructor to FormPostBuilder to facilitate passing …
Browse files Browse the repository at this point in the history
…a ContentType.
  • Loading branch information
colossatr0n authored and uglyog committed Aug 2, 2022
1 parent 8a6095c commit 33d659e
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ import java.util.UUID
* Builder for constructing application/x-www-form-urlencoded bodies
*/
class FormPostBuilder(
val body: MutableMap<String, List<String>> = mutableMapOf(),
private val contentType: ContentType = ContentType(APPLICATION_FORM_URLENCODED),
private val matchers: Category = Category("body"),
private val generators: Generators = Generators()
val body: MutableMap<String, List<String>> = mutableMapOf(),
private var contentType: ContentType = ContentType(APPLICATION_FORM_URLENCODED),
private val matchers: Category = Category("body"),
private val generators: Generators = Generators()
) : BodyBuilder {

constructor(contentType: ContentType): this() {
this.contentType = contentType;
}

/**
* Attribute that must be have the specified value
* @param name attribute name
Expand Down

0 comments on commit 33d659e

Please sign in to comment.