Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Builder
@ToString(includePackage = false)
@CompileStatic
class Response {
int statusCode
String body
private Map<String, String> headers = [:]
void addHeader(String key, String value) {
headers.put(key, value)
}
}
@jahs4488

This comment has been minimized.

jahs4488 commented Sep 25, 2017

How do I pass this class to Java? please!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment