{"title":"TestHttpRequestPolicy Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-testhttprequestpolicy-property/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-testhttprequestpolicy-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies the behavior when encountering outgoing http requests in test executions.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":145,"chars":24},{"level":2,"title":"Property value","slug":"property-value","at":169,"chars":612},{"level":2,"title":"Remarks","slug":"remarks","at":781,"chars":391},{"level":2,"title":"Related information","slug":"related-information","at":1172,"chars":115}],"text":"> Version: _Available or changed with runtime version 15.0._\nSpecifies the behavior when encountering outgoing http requests in test executions.\n## Applies to\n Codeunit\n## Property value\nValue|Available or changed with|Description\nBlockOutboundRequests|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.\nAllowOutboundFromHandler|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.\nAllowAllOutboundRequests|runtime version 15.0|All outbound HTTP requests issued during the test execution are allowed.\n## Remarks\nWith 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>.\n## Related information\nGetting started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>"}