Skip to content

Httpstack

Orhan Obut edited this page Aug 9, 2015 · 2 revisions

You can set your custom http stack instead of default. Default is OkHttp.

  GitHubService service = new Wasp.Builder(this)    
        .setEndpoint("https://api.github.com")   
        .setHttpStack(new YourHttpStack());       
        .build()                        
        .create(MyService.class);   

Implement WaspHttpStack interface and pass it to Wasp

Clone this wiki locally