Skip to content

Commit

Permalink
Merge pull request #77 from jonnii/feature/internalize
Browse files Browse the repository at this point in the history
[Feature] Internalize
  • Loading branch information
jonnii authored Jan 9, 2018
2 parents 3ae7460 + d9f9517 commit 2039247
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 90 deletions.
2 changes: 1 addition & 1 deletion src/SpeakEasy.Specifications/Fixtures/HttpResponses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace SpeakEasy.Specifications.Fixtures
{
public static class HttpResponses
internal static class HttpResponses
{
public static HttpResponse Create(ISerializer serializer, Stream bodyStream, HttpStatusCode code)
{
Expand Down
26 changes: 0 additions & 26 deletions src/SpeakEasy.Specifications/ParsedHeaderSpecs.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/SpeakEasy/Bodies/FileUploadBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SpeakEasy.Bodies
{
public class FileUploadBody : IRequestBody
internal class FileUploadBody : IRequestBody
{
private readonly Resource resource;

Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/Bodies/ObjectRequestBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SpeakEasy.Bodies
{
public class ObjectRequestBody : IRequestBody
internal class ObjectRequestBody : IRequestBody
{
private readonly object body;

Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/Contents/ByteArrayContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace SpeakEasy.Contents
{
public class ByteArrayContent : IContent
internal class ByteArrayContent : IContent
{
public ByteArrayContent(string contentType, byte[] bytes)
{
Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/Contents/StreamableContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace SpeakEasy.Contents
{
public class StreamableContent : IContent
internal class StreamableContent : IContent
{
private readonly Func<Stream, CancellationToken, Task> onStream;

Expand Down
6 changes: 1 addition & 5 deletions src/SpeakEasy/HttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ internal System.Net.Http.HttpClient BuildSystemClient(CookieContainer cookieCont
var handler = new HttpClientHandler
{
AllowAutoRedirect = false,
//MaxAutomaticRedirections = 0,

UseDefaultCredentials = false,
CookieContainer = cookieContainer,
AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None,
//ClientCertificates = { },
//Proxy =
AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None
};

settings.Authenticator.Authenticate(handler);
Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/HttpResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace SpeakEasy
{
public class HttpResponse : IHttpResponse
internal class HttpResponse : IHttpResponse
{
private readonly ISerializer deserializer;

Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/HttpResponseState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SpeakEasy
/// <summary>
/// The http response state contains the details of an http response, for example cookies and headers.
/// </summary>
public class HttpResponseState : IHttpResponseState
internal class HttpResponseState : IHttpResponseState
{
private readonly HttpResponseMessage httpResponseMessage;

Expand Down
4 changes: 2 additions & 2 deletions src/SpeakEasy/IHttpWebResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public interface IHttpWebResponse : IDisposable
/// Builds the http response state from this http web response
/// </summary>
/// <returns>An http response state</returns>
HttpResponseState BuildState();
IHttpResponseState BuildState();
}
}
}
15 changes: 0 additions & 15 deletions src/SpeakEasy/ParsedHeaderParameter.cs

This file was deleted.

33 changes: 0 additions & 33 deletions src/SpeakEasy/ParsedHeaderValue.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/SpeakEasy/RequestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace SpeakEasy
{
using SystemHttpClient = System.Net.Http.HttpClient;

public class RequestRunner : IRequestRunner
internal class RequestRunner : IRequestRunner
{
private readonly Func<IHttpRequest, CancellationToken, Task<IHttpResponse>> middlewareHead;

Expand Down
2 changes: 1 addition & 1 deletion src/SpeakEasy/TransmissionSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace SpeakEasy
{
public class TransmissionSettings : ITransmissionSettings
internal class TransmissionSettings : ITransmissionSettings
{
private readonly IEnumerable<ISerializer> serializers;

Expand Down

0 comments on commit 2039247

Please sign in to comment.