Commit a9e5d0f
committed
docs: Improve type specifications in HTTP.Response
- Change body type from String.t() to binary() (more accurate)
- Change url type to URI.t() | nil (can be nil)
- Change text/1 return type from String.t() to binary()
- All type specs now correctly reflect actual data types
- Dialyzer, Credo, and all tests passing1 parent 2b15bd6 commit a9e5d0f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments