Skip to content

Commit

Permalink
Make Request properties and VCRHandler type public (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Greybird authored Jan 29, 2024
1 parent a558530 commit 5d4227f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion EasyVCR/Handlers/VCRHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace EasyVCR.Handlers
/// A handler that records and replays HTTP requests and responses.
/// </summary>
// ReSharper disable once InconsistentNaming
internal class VCRHandler : DelegatingHandler
public class VCRHandler : DelegatingHandler
{
private readonly Cassette _cassette;

Expand Down
13 changes: 8 additions & 5 deletions EasyVCR/RequestElements/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Request : HttpElement
/// The body of the request.
/// </summary>
[JsonProperty("Body")]
internal string? Body { get; set; }
public string? Body { get; set; }

/// <summary>
/// The content type of the body of the response.
Expand All @@ -31,22 +31,25 @@ internal ContentType? BodyContentType
/// The content headers of the request.
/// </summary>
[JsonProperty("ContentHeaders")]
internal IDictionary<string, string>? ContentHeaders { get; set; }
public IDictionary<string, string>? ContentHeaders { get; set; }

/// <summary>
/// The method of the request.
/// </summary>
[JsonProperty("Method")]
internal string Method { get; set; }
public string Method { get; set; }

/// <summary>
/// The request headers of the request.
/// </summary>
[JsonProperty("RequestHeaders")]
internal IDictionary<string, string> RequestHeaders { get; set; }
public IDictionary<string, string> RequestHeaders { get; set; }

/// <summary>
/// The URL of the request.
/// </summary>
[JsonProperty("Uri")]
internal string? Uri { get; set; }
public string? Uri { get; set; }

/// <summary>
/// The content type of the body of the response (string).
Expand Down

0 comments on commit 5d4227f

Please sign in to comment.