Implement method to get README html

The old implementation would actually retrieve the entire HTML page
where the README is located. We want to simply make the same request
with a different ACCEPT header so we can retrieve the portion of the
README html that we'd actually want to display.
This commit is contained in:
Haacked
2013-10-09 10:44:00 -07:00
parent bc10ebffa4
commit 0525e5fa50
8 changed files with 67 additions and 24 deletions

View File

@@ -62,5 +62,14 @@ namespace Octokit.Reactive
/// <param name="owner">The owner of the repository.</param>
/// <param name="name">The name of the repository.</param>
/// <returns></returns>
IObservable<Readme> GetReadme(string owner, string name); }
IObservable<Readme> GetReadme(string owner, string name);
/// <summary>
/// Returns just the HTML portion of the README without the surrounding HTML document.
/// </summary>
/// <param name="owner">The owner of the repository.</param>
/// <param name="name">The name of the repository.</param>
/// <returns></returns>
IObservable<string> GetReadmeHtml(string owner, string name);
}
}