We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WpNetworkHeaderMap.wp_total
1 parent eebc744 commit ab3cdc0Copy full SHA for ab3cdc0
wp_api/src/request.rs
@@ -296,10 +296,6 @@ impl WpNetworkHeaderMap {
296
Self { inner: header_map }
297
}
298
299
- pub fn wp_total(&self) -> Option<u32> {
300
- self.header_value_as_u32(HEADER_KEY_WP_TOTAL)
301
- }
302
-
303
pub fn wp_total_pages(&self) -> Option<u32> {
304
self.header_value_as_u32(HEADER_KEY_WP_TOTAL_PAGES)
305
@@ -391,6 +387,10 @@ impl WpNetworkHeaderMap {
391
387
});
392
388
header_hashmap
393
389
390
+
+ pub fn wp_total(&self) -> Option<u32> {
+ self.header_value_as_u32(HEADER_KEY_WP_TOTAL)
+ }
394
395
396
impl From<HeaderMap> for WpNetworkHeaderMap {
0 commit comments