-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Body is not returned when statuscode is 204 or EmptyBody() requ…
…ested through HtmxResponse object
- Loading branch information
Showing
29 changed files
with
423 additions
and
441 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
1 change: 0 additions & 1 deletion
1
src/Htmxor/DependencyInjection/HtmxorApplicationBuilderExtensions.cs
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,63 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace Htmxor.Http; | ||
|
||
/// <summary> | ||
/// Represents a location event with various properties. | ||
/// </summary> | ||
public class AjaxContext | ||
{ | ||
/// <summary> | ||
/// Gets or sets the source element of the request. | ||
/// </summary> | ||
[JsonPropertyName("source")] | ||
public string? Source { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets an event that "triggered" the request. | ||
/// </summary> | ||
[JsonPropertyName("event")] | ||
public string? Event { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a callback that will handle the response HTML. | ||
/// </summary> | ||
[JsonPropertyName("handler")] | ||
public string? Handler { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the target to swap the response into. | ||
/// </summary> | ||
[JsonPropertyName("target")] | ||
public string? Target { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets how the response will be swapped in relative to the target. | ||
/// </summary> | ||
[JsonPropertyName("swap")] | ||
public SwapStyle? Swap { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets values to submit with the request. | ||
/// </summary> | ||
[JsonPropertyName("values")] | ||
public string? Values { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets headers to submit with the request. | ||
/// </summary> | ||
[JsonPropertyName("headers")] | ||
public string? Headers { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets allows you to select the content you want swapped from a response. | ||
/// </summary> | ||
[JsonPropertyName("select")] | ||
public string? Select { get; set; } | ||
} | ||
|
This file contains 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
Oops, something went wrong.