Skip to content

Commit

Permalink
Adding documentation about Dynamic Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jpotts18 committed Aug 28, 2013
1 parent 5fc1e18 commit 45b3339
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ <h4>Response Object Type</h4>
@GET("/users/list")
void userList(Callback&lt;Response> cb);</pre>

<h4>Dynamic Headers</h4>
<p>HTTP Headers can be added dynamically to a Request by using the <code>@Header</code>.</p>
<pre class="prettyprint">@GET("/user")
void getUser(
@Header("Authorization") String authorization,
@Header("X-Api-Version") String version,
Callback<User> callback
)
</pre>

<!--<h3 id="restadapter-configuration">RestAdapter Configuration</h3>
<p><code>RestAdapter</code> is the class through which your API interfaces are turned into callable objects. By default, Retrofit will give you sane defaults for your platform but it allows for customization.</p>
Expand Down

0 comments on commit 45b3339

Please sign in to comment.