-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat!: add support for URL-encoded form data content #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c84e8be
feat: add support for URL-encoded form data content
vbreuss 31ee948
Accept API changes
vbreuss 5ca1036
Remove unnecessary methods
vbreuss 4496dfa
Fix review issues
vbreuss 4e1387b
Update Source/Mockolate/Web/ItExtensions.HttpContent.IsFormDataConten…
vbreuss c5876c2
Fix review and sonar issues
vbreuss e9064e1
refactor!: fluent API
vbreuss 96971e1
Review issues
vbreuss d089b0f
Fix review issues
vbreuss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| using System; | ||
|
|
||
| namespace Mockolate.Web; | ||
|
|
||
| /// <summary> | ||
| /// The value of an HTTP form data parameter. | ||
| /// </summary> | ||
| public class HttpFormDataValue | ||
|
vbreuss marked this conversation as resolved.
|
||
| { | ||
| private readonly string _value; | ||
|
|
||
| /// <inheritdoc cref="HttpFormDataValue" /> | ||
| public HttpFormDataValue(string value) | ||
| { | ||
| _value = value; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Checks whether the given form data parameter value matches this value. | ||
| /// </summary> | ||
|
vbreuss marked this conversation as resolved.
|
||
| public virtual bool Matches(string parameterValue) | ||
| => _value.Equals(parameterValue, StringComparison.Ordinal); | ||
|
|
||
| /// <summary> | ||
| /// Implicitly converts a string to an <see cref="HttpFormDataValue" />. | ||
| /// </summary> | ||
| public static implicit operator HttpFormDataValue(string value) | ||
| { | ||
| return new HttpFormDataValue(value); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 0 additions & 145 deletions
145
Source/Mockolate/Web/ItExtensions.HttpContent.IsBinaryContent.cs
This file was deleted.
Oops, something went wrong.
169 changes: 0 additions & 169 deletions
169
Source/Mockolate/Web/ItExtensions.HttpContent.IsStringContent.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.