Skip to content

Commit

Permalink
Merge pull request #237 from accidentaldeveloper/patch-1
Browse files Browse the repository at this point in the history
Update README.md to contain a warning, so that others do not make my mistake
  • Loading branch information
Oren Novotny committed Jan 21, 2017
2 parents bbe9498 + 8e5d58a commit 2d003d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -250,7 +250,7 @@ public interface IGitHubApi
#### Dynamic headers

If the content of the header needs to be set at runtime, you can add a header
with a dynamic value to a request by applying a `Header` attribute to a parameter:
with a dynamic value to a request by applying a `Header` attribute to a parameter:

```csharp
[Get("/users/{user}")]
Expand Down Expand Up @@ -292,6 +292,8 @@ class AuthenticatedHttpClientHandler : HttpClientHandler
}
```

While HttpClient contains a nearly identical method signature, it is used differently. HttpClient.SendAsync is not called by Refit. The HttpClientHandler must be modified instead.

This class is used like so (example uses the [ADAL](http://msdn.microsoft.com/en-us/library/azure/jj573266.aspx) library to manage auto-token refresh but the principal holds for Xamarin.Auth or any other library:

```csharp
Expand Down

0 comments on commit 2d003d7

Please sign in to comment.