You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Caseless -- wrap an object to set and get property with caseless semantics but also preserve caseing.
2
2
3
-
This library is incredibly useful when working with HTTP headers. It allows you to get/set/check for headers in a caseless manner while also preserving the caseing of headers the first time they are set.
3
+
This library is incredibly useful when working with HTTP headers. It allows you to get/set/check/delete headers in a caseless manner while also preserving the headers' case when they are first set.
4
4
5
5
## Usage
6
6
@@ -43,3 +43,23 @@ c.swap('a-HEADER')
43
43
c.has('a-header') ==='a-HEADER'
44
44
headers === {'a-HEADER':'fdas'}
45
45
```
46
+
47
+
## del(key)
48
+
49
+
Deletes a key and, if there's many instances of the key with multiple cases, all of them.
0 commit comments