---
title: "connection:handleRequest:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsconnectiondelegate/connection:handlerequest:"
---

# connection:handleRequest:

This method should be implemented by NSConnection object delegates that want to intercept distant object requests.

## Declaration

```occ
- (BOOL) connection:(NSConnection *) connection handleRequest:(NSDistantObjectRequest *) doreq;
```

## Parameters

- `connection`: The connection object for which the receiver is the delegate.
- `doreq`: The distant object request.

## Return Value

Return Value true if the request was handled by the delegate, false if the request should proceed as if the delegate did not intercept it.

## See Also

### Responding to a Connection

- [connection:shouldMakeNewConnection:](foundation/nsconnectiondelegate/connection:shouldmakenewconnection:.md)
- [createConversationForConnection:](foundation/nsconnectiondelegate/createconversationforconnection:.md)
- [makeNewConnection:sender:](foundation/nsconnectiondelegate/makenewconnection:sender:.md)
