Closed navjot50 closed 2 years ago
Added the feature to give count of total posts without loading all of them in memory.
A HEAD request is made to the WordPress REST API which gives back all the headers without any response payload. Then the value of X-WP-TOTAL header is returned.
HEAD
X-WP-TOTAL
This PR is a minimal solution to https://github.com/wp-net/WordPressPCL/issues/255
this should be added to CustomRequest as well
Added the feature to give count of total posts without loading all of them in memory.
A
HEAD
request is made to the WordPress REST API which gives back all the headers without any response payload. Then the value ofX-WP-TOTAL
header is returned.This PR is a minimal solution to https://github.com/wp-net/WordPressPCL/issues/255