get

fun get(destination: String, etag: String? = null): HttpRequest.Builder
fun get(destination: URL, etag: String? = null): HttpRequest.Builder

Utility method for building a simple GET request.

Parameters

destination

the url to GET

etag

optional etag allowing the server to efficiently return the appropriate response if the data requested hasn't changed.