mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
* fix(core/gateway): option to limit directory size listing * feat(gw): HTMLDirListingLimit This is alternative take on the way we limit the HTML listing output. Instead of a hard cut-off, we list up to HTMLDirListingLimit. When a directory has more items than HTMLDirListingLimit we show additional header and footer informing user that only $HTMLDirListingLimit items are listed. This is a better UX. * fix: 0 disables Gateway.HTMLDirListingLimit * refactor: Gateway.FastDirIndexThreshold see explainer in docs/config.md * refactor: prealoc slices * docs: Gateway.FastDirIndexThreshold * refactor: core/corehttp/gateway_handler.go https://github.com/ipfs/go-ipfs/pull/8853#discussion_r851437088 * docs: apply suggestions from code review Co-authored-by: Alan Shaw <alan.shaw@protocol.ai> Co-authored-by: Marcin Rataj <lidel@lidel.org> Co-authored-by: Alan Shaw <alan.shaw@protocol.ai> |
||
|---|---|---|
| .. | ||
| commands.go | ||
| corehttp.go | ||
| gateway_handler_block.go | ||
| gateway_handler_car.go | ||
| gateway_handler_unixfs_dir.go | ||
| gateway_handler_unixfs_file.go | ||
| gateway_handler_unixfs.go | ||
| gateway_handler.go | ||
| gateway_indexPage.go | ||
| gateway_test.go | ||
| gateway.go | ||
| hostname_test.go | ||
| hostname.go | ||
| lazyseek_test.go | ||
| lazyseek.go | ||
| logs.go | ||
| metrics_test.go | ||
| metrics.go | ||
| mutex_profile.go | ||
| option_test.go | ||
| p2p_proxy_test.go | ||
| p2p_proxy.go | ||
| redirect.go | ||
| webui.go | ||