Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnii committed Jan 2, 2018
1 parent c5c819f commit 4976b27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/SpeakEasy/IHttpResponseState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ public interface IHttpResponseState : IDisposable

string ReasonPhrase { get; }

//string ContentEncoding { get; }

//string StatusDescription { get; }

//DateTime LastModified { get; }
string ContentEncoding { get; }

DateTime LastModified { get; }
}
}
7 changes: 4 additions & 3 deletions src/SpeakEasy/SingleUseStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SpeakEasy
{
public class SingleUseStream : IDisposable
internal class SingleUseStream : IDisposable
{
private readonly Stream stream;

Expand All @@ -18,8 +18,9 @@ public Stream GetAndConsumeStream()
{
if (isConsumed)
{
// TODO: Write a better exception message here
throw new InvalidOperationException("You tried to use a stream twice");
throw new InvalidOperationException(
"An attempt was made to consume the same stream twice. This can happen if you " +
"try to do two things with an http response.");
}

isConsumed = true;
Expand Down

0 comments on commit 4976b27

Please sign in to comment.