# TestHttpRequestPolicy Property
> Version: _Available or changed with runtime version 15.0._
Specifies the behavior when encountering outgoing http requests in test executions.
## Applies to
 Codeunit
## Property value
Value|Available or changed with|Description
BlockOutboundRequests|runtime version 15.0|Any HTTP request issued during the test execution that is not caught and handled by an HTTP client handler will raise an exception.
AllowOutboundFromHandler|runtime version 15.0|All HTTP requests issued during the test execution are required to be caught by an HTTP client handler. The handler is allowed to explicitly fall through to issue the original request to the external endpoint.
AllowAllOutboundRequests|runtime version 15.0|All outbound HTTP requests issued during the test execution are allowed.
## Remarks
With this property, you can control how outbound HTTP requests are treated during test execution. By default, all outbound requests are allowed, but you can further restrict this behavior to only allow ones issued from a handler, or to block all unhandled outbound requests. See Mock outbound HttpClient web service calls during testing<../devenv-httpclient-mock-outbound-calls>.
## Related information
Getting started with AL<../devenv-get-started>
Developing extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-testhttprequestpolicy-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-testhttprequestpolicy-property/
