CodeExplorer processResponse example
);
} $bytes_written = 0;
while ( !
feof( $handle ) &&
$keep_reading ) { $block =
fread( $handle,
$block_size );
if ( !
$body_started ) { $response .=
$block;
if ( strpos( $response, "\r\n\r\n"
) ) { $processed_response = WP_Http::
processResponse( $response );
$body_started = true;
$block =
$processed_response['body'
];
unset( $response );
$processed_response['body'
] = '';
} } $this_block_size =
strlen( $block );
if ( isset( $parsed_args['limit_response_size'
] ) && ( $bytes_written +
$this_block_size ) >
$parsed_args['limit_response_size'
] )