Top "Middleware" questions

Middleware is computer software that provides services to software applications beyond those available from the operating system.

How to bind user object to request in a middleware

i'm writing an application in Laravel Spark 1.0 (Laravel 5.2). I wrote a custom middleware for agent (api) authentication. This is the …

php laravel request middleware laravel-spark
How do I set a cookie with a (ruby) rack middleware component?

I'm writing a rack middleware component for a rails app that will need to conditionally set cookies. I am currently …

ruby cookies rack middleware setcookie
How can I get Guzzle 6 to retry a request upon a 503 error in Laravel

I've written some code in Laravel 5.2 to retrieve results from an unrelible API source. However, it needs to be able …

php http middleware guzzle6
Java/Python communication via message broker

What is a good solution for communication via message broker that supports both (C)Python and Java/JMS applications? My …

java python middleware unit-of-work messagebroker
exit from chain of route specific middleware in express/ nodejs

I have a chain of "route specific middleware" for this route, like so: var express = require('express'); var server = express(); …

javascript node.js express connect middleware
Axios middleware to use in all instances of axios

I'm using axios in my react app using import axios from 'axios in many of my scripts. I want to …

reactjs axios middleware
ASP.NET Core Response.End()?

I am trying to write a piece of middleware to keep certain client routes from being processed on the server. …

c# middleware asp.net-core-1.0
How do I use a Rack middleware only for certain paths?

I'd like to have MyMiddleware run in my Rack app, but only for certain paths. I was hoping to use …

ruby rack middleware
Laravel Dependency Injection in Middleware

I am using Laravel-5.0's default Authentication Middleware, but I changed the signature of the handle function to have: public …

php laravel ioc-container middleware
ASP.NET Core Middleware Passing Parameters to Controllers

I am using ASP.NET Core Web API, where I have Multiple independent web api projects. Before executing any of …

c# asp.net-core asp.net-core-mvc middleware asp.net-core-webapi