1. 09 5月, 2014 1 次提交
  2. 21 3月, 2014 2 次提交
  3. 02 2月, 2014 2 次提交
  4. 01 2月, 2014 2 次提交
  5. 26 11月, 2013 2 次提交
  6. 28 10月, 2013 1 次提交
  7. 13 9月, 2013 2 次提交
  8. 31 8月, 2013 2 次提交
  9. 24 8月, 2013 3 次提交
  10. 23 7月, 2013 1 次提交
  11. 15 7月, 2013 1 次提交
  12. 26 6月, 2013 2 次提交
  13. 21 6月, 2013 2 次提交
  14. 04 6月, 2013 1 次提交
    • J
      Introduce `RequestInterceptor` to replace `RequestHeaders`. · 7ddaabb8
      Jake Wharton 提交于
      In addition to global headers (which were doable before), this allows for global
      path param replacement in URLs.
      
      This has cropped up in a few APIs over the internet and we're traditionally not provided
      a good path to implementation. Before you would have to manually move the global param
      around your application to every method call site onto a Retrofit interface. This new
      interface provides a single place to manage these global params along with other
      global headers (such as for authentication).
      
      Given:
      
          @GET("/show/{apiKey}/{showId}/episodes")
          List<Episode> episodes(@Path("showId") String showId)
      
      Usage:
      
          class FooInterceptor implements RequestInterceptor {
            @Inject @ApiKey String apiKey;
      
            @Override public void intercept(RequestFacade request) {
              request.addPathParam("apiKey", apiKey);
            }
          }
      
      This also has the added benefit of saving an extra `List` allocation for global headers
      since they are now set directly on the underlying `Request` via the facade interface.
      7ddaabb8
  15. 29 5月, 2013 1 次提交
  16. 24 5月, 2013 2 次提交
  17. 14 5月, 2013 2 次提交
  18. 13 5月, 2013 2 次提交
  19. 26 3月, 2013 1 次提交
  20. 20 2月, 2013 1 次提交
  21. 12 2月, 2013 1 次提交
    • J
      Abstract HTTP client behind interfaces. · 4d508189
      Jake Wharton 提交于
      Move the HTTP client implementation behind interfaces which allow
      for its substitution. A `Client` is a one-method class which takes a
      `Request` object, executes an HTTP request represented by it
      synchronously, and returns a `Response` object representing the HTTP
      response entirely.
      
      Since this is such a fundamental change all of the tests which interact
      with and verify the client have been rewritten from scratch.
      
      This commit also changes two behaviors which were previously present:
      
       * Implicit, form-encoded request bodies are no longer supported. Extra
         `@Named` params on a method is now invalid.
       * Multi-part requests are no longer implicit. Methods which submit
         multi-part request bodies must be annotated with `@Multipart`.
      4d508189
  22. 30 10月, 2012 1 次提交
    • J
      Reorganize project for a final push toward 1.0. · 06d449fa
      Jake Wharton 提交于
      * Bump version to 1.0.0-SNAPSHOT.
      * Conslidate 'http' and 'io' modules into a single 'retrofit' module.
      * Remove native directory sync code and example.
      * Renames 'examples' to 'samples'.
      06d449fa
  23. 29 10月, 2012 1 次提交
  24. 24 10月, 2012 1 次提交
  25. 10 10月, 2012 1 次提交
  26. 01 9月, 2012 1 次提交
    • J
      Bump to 0.7.0-SNAPSHOT. · 174d279a
      Jake Wharton 提交于
      * Reintroduce shake detection as its own module.
      * Move YAFFS-specific directory sync to its own module.
      * Focus HTTP and I/O modules.
      * Queue module for `QueueFile` and future queue-related stuff.
      174d279a