Android Open Source - hello-pinnedcerts Git Hub Service






From Project

Back to project page hello-pinnedcerts.

License

The source code is released under:

Copyright (c) 2014 Ivan Ku?t Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...

If you think the Android project hello-pinnedcerts listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package co.infinum.https.retrofit;
/*  w  w  w .  jav  a 2  s. c  om*/
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Header;
import retrofit.http.Headers;
import retrofit.http.Path;

/**
 * API interface for Retrofit.
 */
public interface GitHubService {

    /**
     * Fetches public information about a user.
     *
     * @param user Github username
     * @param callback callback to notify the results as User object
     */
    @GET("/users/{user}")
    @Headers("User-Agent: hello-pinnedcerts")
    void getUser(
            @Path("user") String user,
            @Header("Authorization") String authorizationHeader,
            Callback<User> callback

    );
}




Java Source Code List

co.infinum.https.CustomTrustManager.java
co.infinum.https.HttpClientBuilder.java
co.infinum.https.IgnorantHttpClient.java
co.infinum.https.MainActivity.java
co.infinum.https.RetrofitApacheClientBuilder.java
co.infinum.https.RetrofitClientBuilder.java
co.infinum.https.retrofit.GitHubService.java
co.infinum.https.retrofit.Logger.java
co.infinum.https.retrofit.User.java