Transport options | laravel-webhook-server-rust | Spatie       

 SPATIE  

laravel-webhook-server-rust
===========================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-webhook-server-rust](https://spatie.be/docs/laravel-webhook-server-rust/v1)  Transport options

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-webhook-server-rust/v1) 

  Transport options    
- [ Introduction ](https://spatie.be/docs/laravel-webhook-server-rust/v1/introduction)
- [ Installation and setup ](https://spatie.be/docs/laravel-webhook-server-rust/v1/installation-and-setup)
- [ Sending webhooks ](https://spatie.be/docs/laravel-webhook-server-rust/v1/sending-webhooks)
- [ Signing requests ](https://spatie.be/docs/laravel-webhook-server-rust/v1/signing-requests)
- [ Retrying failed webhooks ](https://spatie.be/docs/laravel-webhook-server-rust/v1/retrying-failed-webhooks)
- [ Transport options ](https://spatie.be/docs/laravel-webhook-server-rust/v1/transport-options)
- [ Events ](https://spatie.be/docs/laravel-webhook-server-rust/v1/events)
- [ Testing webhooks ](https://spatie.be/docs/laravel-webhook-server-rust/v1/testing-webhooks)
- [ Upgrading ](https://spatie.be/docs/laravel-webhook-server-rust/v1/upgrading)
- [ Testing ](https://spatie.be/docs/laravel-webhook-server-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-webhook-server-rust/v1/changelog)
- [ Support us ](https://spatie.be/docs/laravel-webhook-server-rust/v1/support-us)

 Transport options
=================

###  On this page 

1. [ Proxies, custom CAs and mutual TLS ](#content-proxies-custom-cas-and-mutual-tls)
2. [ TLS verification and redirects ](#content-tls-verification-and-redirects)

All outgoing calls use `laravel::http::client`, including Laravel's application client hooks and HTTP fakes. There is no separate HTTP client dependency. Transport settings use the framework's `configure_transport` API and its re-exported transport types.

Proxies, custom CAs and mutual TLS
------------------------------------------------------------------------------------------------------------------------------------------------------------

```
use spatie_laravel_webhook_server::TransportOptions;

let transport = TransportOptions {
    proxy: Some("http://proxy.internal:3128".into()),
    ca_bundle: Some("certificates/ca.pem".into()),
    identity: Some("certificates/client-identity.pem".into()),
    ..TransportOptions::default()
};
assert!(transport.verify_ssl);
```

Assign this to `Config.transport` or pass it to `WebhookCall::transport`. Files must be readable on the worker, not just the web process. The identity PEM contains the client certificate chain and its unencrypted private key. Protect the file's permissions. The framework's rustls transport accepts combined PEM identities; encrypted certificate/key passphrases are not supported. Decrypt into a protected worker-local identity file before use.

The proxy URL applies to all schemes. For scheme-specific proxies or bypass rules, configure Laravel's application HTTP client using its re-exported `reqwest::Proxy` type. The package's explicit settings apply after the application's transport settings.

TLS verification and redirects
--------------------------------------------------------------------------------------------------------------------------------------------------

TLS certificates are verified by default. Use a custom CA bundle for private certificate authorities. Disabling `verify_ssl` permits invalid certificates and is not suitable for production.

Redirects are disabled by default so a receiver cannot forward a signed body to a different origin. To explicitly opt in, set `max_redirects` to a nonzero limit. Laravel's native transport then applies its redirect policy. Only send webhooks to trusted destinations; the package does not implement a private-network URL allowlist or DNS-rebinding protection.

The HTTP timeout defaults to three seconds per attempt. This package reports elapsed request time in events. The framework does not expose Guzzle-style transfer statistics, cookie jars or PHP transport objects.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
