Skip to content

Instantly share code, notes, and snippets.

@cherniag
Created April 20, 2017 12:22
Show Gist options
  • Save cherniag/b06533d776efe090871948ffcb2f8c48 to your computer and use it in GitHub Desktop.
Save cherniag/b06533d776efe090871948ffcb2f8c48 to your computer and use it in GitHub Desktop.
Retrofit
import retrofit.client.Response
import retrofit.mime.TypedString;
TypedString wrapped = new TypedString(script);
...
@POST("/validate")
Response validate(@Body TypedString script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment