# woocommerce-pos/1.10.23/includes/API/V2/Proxy/Fast_Path_Behavior.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.23. 32 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.23/code/includes/API/V2/Proxy/Fast_Path_Behavior.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.23/raw/includes/API/V2/Proxy/Fast_Path_Behavior.php
- Modified: 2026-10-06T17:12:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woocommerce-pos/1.10.23/code/includes/API/V2/Proxy/Fast_Path_Behavior.php#L10-L20`.

```php
<?php
/**
 * Optional fast-path contract for a catalog proxy behavior.
 *
 * @package WCPOS\WooCommercePOS\API\V2\Proxy
 */

namespace WCPOS\WooCommercePOS\API\V2\Proxy;

use WP_REST_Request;
use WP_REST_Response;

/**
 * Lets a behavior answer one narrow request shape without the wc/v3 forward.
 *
 * A separate interface rather than a new {@see Proxy_Behavior} method, so
 * existing Proxy_Behavior implementations outside this plugin keep working.
 */
interface Fast_Path_Behavior {
	/**
	 * Answer the request directly when it is this behavior's fast-path shape.
	 *
	 * The response is returned as-is: no wc/v3 forward, no
	 * `woocommerce_pos_sync_proxy_response` filter, no post-processing.
	 *
	 * @param WP_REST_Request $request Original proxy request.
	 *
	 * @return null|WP_REST_Response Null when the request is not the fast-path shape.
	 */
	public function fast_response( WP_REST_Request $request ): ?WP_REST_Response;
}

```
