diff --git a/src/Ramstack.HtmxToolkit/HtmxAssets.cs b/src/Ramstack.HtmxToolkit/HtmxAssets.cs index a900703..dd35b7c 100644 --- a/src/Ramstack.HtmxToolkit/HtmxAssets.cs +++ b/src/Ramstack.HtmxToolkit/HtmxAssets.cs @@ -4,22 +4,22 @@ namespace Ramstack.HtmxToolkit; /// -/// Provides access to embedded javascript assets. +/// Provides access to the embedded HTMX toolkit script assets. /// public static class HtmxAssets { /// - /// The debug version of the script to integrate with the anti-forgery feature of ASP.NET Core. + /// The unminified HTMX toolkit script. /// public static readonly string DebugScript = GetResource("htmx-toolkit.js"); /// - /// The minified version of the script to integrate with the anti-forgery feature of ASP.NET Core. + /// The minified HTMX toolkit script. /// public static readonly string Script = GetResource("htmx-toolkit.min.js"); /// - /// The hash of the current script. + /// The content hash of the HTMX toolkit script. /// public static readonly string Hash = Convert .ToHexString(SHA1.HashData(Encoding.UTF8.GetBytes(DebugScript)).AsSpan(0, 8)) diff --git a/src/Ramstack.HtmxToolkit/HtmxRequestHeaders.cs b/src/Ramstack.HtmxToolkit/HtmxRequestHeaders.cs index e1ff52f..9e12bf2 100644 --- a/src/Ramstack.HtmxToolkit/HtmxRequestHeaders.cs +++ b/src/Ramstack.HtmxToolkit/HtmxRequestHeaders.cs @@ -46,7 +46,7 @@ internal HtmxRequestHeaders(HttpRequest request) => public string? Prompt => GetString(_headers, HtmxRequestHeaderNames.Prompt); /// - /// Gets a value indicating whether the current request is htmx request. + /// Gets a value indicating whether the current request is an HTMX request. /// /// public bool Request => GetBoolean(_headers, HtmxRequestHeaderNames.Request); diff --git a/src/Ramstack.HtmxToolkit/HtmxResponse.cs b/src/Ramstack.HtmxToolkit/HtmxResponse.cs index 84195c8..d404623 100644 --- a/src/Ramstack.HtmxToolkit/HtmxResponse.cs +++ b/src/Ramstack.HtmxToolkit/HtmxResponse.cs @@ -9,7 +9,7 @@ namespace Ramstack.HtmxToolkit; /// -/// Represents HTTP response to set htmx response headers. +/// Represents an HTTP response whose HTMX response headers can be configured. /// /// /// Like and themselves, this type is not thread-safe. diff --git a/src/Ramstack.HtmxToolkit/HtmxResponseHeaders.cs b/src/Ramstack.HtmxToolkit/HtmxResponseHeaders.cs index 938a9db..dae0d05 100644 --- a/src/Ramstack.HtmxToolkit/HtmxResponseHeaders.cs +++ b/src/Ramstack.HtmxToolkit/HtmxResponseHeaders.cs @@ -61,7 +61,7 @@ public bool Refresh } /// - /// Gets or Sets the HX-Replace-Url header to replace the current URL + /// Gets or sets the HX-Replace-Url header to replace the current URL /// without pushing a new entry to the browser's history stack. /// [MaybeNull] diff --git a/src/Ramstack.HtmxToolkit/HtmxTriggerTiming.cs b/src/Ramstack.HtmxToolkit/HtmxTriggerTiming.cs index 7bba207..7887762 100644 --- a/src/Ramstack.HtmxToolkit/HtmxTriggerTiming.cs +++ b/src/Ramstack.HtmxToolkit/HtmxTriggerTiming.cs @@ -13,7 +13,7 @@ public enum HtmxTriggerTiming /// /// Maps to the HX-Trigger-After-Swap header that is used to trigger an event - /// on the client side after the htmx request has been swapped. + /// on the client side after the response content has been swapped into the DOM. /// AfterSwap, diff --git a/src/Ramstack.HtmxToolkit/Internal/HttpVerbArray.cs b/src/Ramstack.HtmxToolkit/Internal/HttpVerbArray.cs index fbec4a0..e8dcc0a 100644 --- a/src/Ramstack.HtmxToolkit/Internal/HttpVerbArray.cs +++ b/src/Ramstack.HtmxToolkit/Internal/HttpVerbArray.cs @@ -4,9 +4,7 @@ namespace Ramstack.HtmxToolkit.Internal; /// -/// A lightweight wrapper over an array of values -/// that implements to lazily produce lowercase -/// HTTP method strings without allocating an intermediate array. +/// Represents a lightweight wrapper over an array of values. /// internal readonly struct HttpVerbArray : IEnumerable { diff --git a/src/Ramstack.HtmxToolkit/TagHelpers/HtmxHeaderTagHelper.cs b/src/Ramstack.HtmxToolkit/TagHelpers/HtmxHeaderTagHelper.cs index 98f1f4a..635da26 100644 --- a/src/Ramstack.HtmxToolkit/TagHelpers/HtmxHeaderTagHelper.cs +++ b/src/Ramstack.HtmxToolkit/TagHelpers/HtmxHeaderTagHelper.cs @@ -22,7 +22,7 @@ public sealed class HtmxHeaderTagHelper : TagHelper private const string HeadersDictionaryName = "hx-all-headers"; /// - /// Gets or sets the hx-header attribute values. + /// Gets or sets the hx-headers attribute values. /// [HtmlAttributeName(HeadersDictionaryName, DictionaryAttributePrefix = HeadersPrefix)] public IDictionary Headers