Skip to content

Commit ab3cdc0

Browse files
authored
Export WpNetworkHeaderMap.wp_total (#702)
1 parent eebc744 commit ab3cdc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wp_api/src/request.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,6 @@ impl WpNetworkHeaderMap {
296296
Self { inner: header_map }
297297
}
298298

299-
pub fn wp_total(&self) -> Option<u32> {
300-
self.header_value_as_u32(HEADER_KEY_WP_TOTAL)
301-
}
302-
303299
pub fn wp_total_pages(&self) -> Option<u32> {
304300
self.header_value_as_u32(HEADER_KEY_WP_TOTAL_PAGES)
305301
}
@@ -391,6 +387,10 @@ impl WpNetworkHeaderMap {
391387
});
392388
header_hashmap
393389
}
390+
391+
pub fn wp_total(&self) -> Option<u32> {
392+
self.header_value_as_u32(HEADER_KEY_WP_TOTAL)
393+
}
394394
}
395395

396396
impl From<HeaderMap> for WpNetworkHeaderMap {

0 commit comments

Comments
 (0)