Download the PHP package mk-josias/laravel-distributable-rpc-http without Composer
On this page you can find all versions of the php package mk-josias/laravel-distributable-rpc-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mk-josias/laravel-distributable-rpc-http
More information about mk-josias/laravel-distributable-rpc-http
Files in mk-josias/laravel-distributable-rpc-http
Package laravel-distributable-rpc-http
Short Description HTTP driver for the RPC of mk-josias/laravel-distributable: signed calls between modules, one endpoint per module.
License MIT
Homepage https://mk-josias.github.io/laravel-distributable/
Informations about the package laravel-distributable-rpc-http
HTTP RPC
The http RPC driver of laravel-distributable: signed calls between modules.
Its provider is discovered. It registers the driver of the shipped http transport, and serves
POST {module}/rpc/{version}/{message} for each module this process runs. Its settings are in
config/rpc-http.php (php artisan vendor:publish --tag=rpc-http-config). It declares the http
transport and takes it as the default when distributable.rpc.transport names none. The secret is
shared by caller and called:
- Signed: an HMAC of the timestamp, a nonce, the path, the body and the propagated context
- Fresh: a call older than
signature_ttlis rejected - Once: each nonce is accepted once, through the cache
- Answers: 200 the return value as JSON · 404
null· 400 no such message or version · 403 bad signature · 422 a payload its rules refuse
What a program written in another language has to send is in Programs in other languages.