WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Notes::prepare_query_for_response() public WC 1.0

Prepare a path or query for serialization to the client.

{} It's a method of the class: Notes{}

No Hooks.

Return

String. A fully formed URL.

Usage

$Notes = new Notes();
$Notes->prepare_query_for_response( $query );
$query(string) (required)
The query, path, or URL to transform.

Code of Notes::prepare_query_for_response() WC 5.3.0

<?php
public function prepare_query_for_response( $query ) {
	if ( empty( $query ) ) {
		return $query;
	}
	if ( 'https://' === substr( $query, 0, 8 ) ) {
		return $query;
	}
	if ( 'http://' === substr( $query, 0, 7 ) ) {
		return $query;
	}
	if ( '?' === substr( $query, 0, 1 ) ) {
		return admin_url( 'admin.php' . $query );
	}

	return admin_url( $query );
}