"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/codegen/generators/java-okhttp.js" between
hoppscotch-2.0.0.tar.gz and hoppscotch-2.1.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

java-okhttp.js  (hoppscotch-2.0.0):java-okhttp.js  (hoppscotch-2.1.0)
skipping to change at line 42 skipping to change at line 42
requestString.push( requestString.push(
`MediaType mediaType = MediaType.parse("${contentType}");` `MediaType mediaType = MediaType.parse("${contentType}");`
) )
requestString.push( requestString.push(
`RequestBody body = RequestBody.create(mediaType,${requestBody});` `RequestBody body = RequestBody.create(mediaType,${requestBody});`
) )
} }
requestString.push("Request request = new Request.Builder()") requestString.push("Request request = new Request.Builder()")
requestString.push(`.url("${url}${pathName}${queryString}")`) requestString.push(`.url("${url}${pathName}?${queryString}")`)
if (["POST", "PUT", "PATCH", "DELETE"].includes(method)) { if (["POST", "PUT", "PATCH", "DELETE"].includes(method)) {
requestString.push(`.method("${method}", body)`) requestString.push(`.method("${method}", body)`)
} else { } else {
requestString.push(`.method("${method}", null)`) requestString.push(`.method("${method}", null)`)
} }
if (auth === "Basic Auth") { if (auth === "Basic Auth") {
const basic = `${httpUser}:${httpPassword}` const basic = `${httpUser}:${httpPassword}`
requestString.push( requestString.push(
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)