Skip to content

Instantly share code, notes, and snippets.

@bytekast
Created March 25, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bytekast/85341e54fc9f883f27b82cbb1d8365bb to your computer and use it in GitHub Desktop.
Save bytekast/85341e54fc9f883f27b82cbb1d8365bb to your computer and use it in GitHub Desktop.
@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
Copy link

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