@Test public void testHeaders() throws AuthFailureError { final Map<String, String> headers = new HashMap<>(); headers.put(HEADER_NAME_2, HEADER_VALUE_2); final Request<Void> request = Rest.all(RESOURCE_ROUTE_USERS).head() .header(HEADER_NAME_1, HEADER_VALUE_1) .headers(headers) .request(); final Map<String, String> actualHeaders = request.getHeaders(); assertThat(actualHeaders, hasEntry(HEADER_NAME_1, HEADER_VALUE_1)); assertThat(actualHeaders, hasEntry(HEADER_NAME_2, HEADER_VALUE_2)); }
@NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); static void setBaseUrl(@NonNull final String baseUrl); static void setGson(@NonNull final Gson gson); static void setInterceptor(@Nullable final RequestInterceptor interceptor); static void setElementsKey(@Nullable final String elementsKey); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id,
			@NonNull final Gson gson); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route,
			@NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); static void setBaseUrl(@NonNull final String baseUrl); static void setGson(@NonNull final Gson gson); static void setInterceptor(@Nullable final RequestInterceptor interceptor); static void setElementsKey(@Nullable final String elementsKey); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id,
			@NonNull final Gson gson); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route,
			@NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson);  }