Middleware in web framework

US12093758B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12093758-B2
Application numberUS-201916295860-A
CountryUS
Kind codeB2
Filing dateMar 7, 2019
Priority dateMar 7, 2019
Publication dateSep 17, 2024
Grant dateSep 17, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Concepts for middleware in a web framework are presented. One example comprises defining a target object type configured to hold results of a middleware function. A first object for an application is received and a process of the middleware function is performed, using the first object, to generate a process result. Based on the process result, a second object of the target object type is generated, after which the second object is provided to the application.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method for middleware in a web framework, the method comprising: defining a target object type configured to hold results of a middleware function, by accounting for information produced by processing the middleware function; enabling a type-safety of the middleware function; receiving a first object for an application; performing a process of the middleware function using the first object to generate a process result; enabling a plurality of middleware functions configured to execute sequentially to each other; consulting a route table in a web framework; dispatching a relevant middleware function according to the route table; based on the process result, generating by the middleware an instance of the middleware wherein the instance of the middleware includes creating a second object of the target object type, wherein the second object is not an altered version of the first object; and providing the second object from the middleware to a next applicable piece of code in the application; wherein a route handler function is attached to a route in the application and is configured to provide the second object from the middleware function to the route handler function, and to determine how to handle the second object. 2. The method of claim 1 , wherein if the middleware function is unable to define the target object type, the middleware function is configured to return an error to the application. 3. The method of claim 2 , wherein returning the error to the application comprises: preventing the middleware function from generating the second object; preventing the route handler function from being executed; and declaring the error using an error code. 4. The method of claim 1 , wherein the second object is a concrete object. 5. The method of claim 1 , wherein the first object is at least one of: a request; and a response. 6. The method of claim 5 , wherein: the request is a HTTP request; and the response is a HTTP response. 7. The method of claim 1 , wherein the method enables the plurality of middleware functions to execute independently with respect to each other. 8. The method of claim 1 , wherein the second object is a concrete object. 9. The method of claim 1 , wherein the first object is at least one of: a HTTP request; and a HTTP response. 10. A computer program product for middleware in a web framework, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing unit to cause the processing unit to perform a method comprising: defining a target object type configured to hold results of a middleware function, by accounting for information produced by processing the middleware function; enabling a type-safety of the middleware function; receiving a first object for an application; performing a process of the middleware function using the first object to generate a process result; enabling a plurality of middleware functions configured to execute sequentially to each other; consulting a route table in a web framework; dispatching a relevant middleware function according to the route table; based on the process result, generating by the middleware an instance of the middleware wherein the instance of the middleware includes creating a second object of the target object type wherein the second object is a concrete object and a first instance of the second object, wherein the second object is not an altered version of the first object; and providing the second object to a next applicable piece of code in the application; wherein a route handler function is attached to a route in the application and is configured to provide the second object from the middleware function to the route handler function, and to determine how to handle the second object. 11. The computer program product of claim 10 further comprising: wherein the middleware function is attached to a route in the application. 12. A system for middleware in a web framework, the system comprising a processor; and a memory in communication with the processor, the memory containing program instructions that, when executed by the processor, are configured to cause the processor to: define a target object type configured to hold results of a middleware function, by accounting for information produced by processing the middleware function; enable a type-safety of the middleware function receive a first object for an application; perform a process of the middleware function using the first object to generate a process result; enable a plurality of middleware functions configured to execute sequentially to each other; consult a route table in a web framework; dispatch a relevant middleware function according to the route table; based on the process result, generate by the middleware an instance of the middleware wherein the instance of the middleware includes creating a second object of the target object type, wherein the second object is not an altered version of the first object; provide the second object from the middleware to a next applicable piece of code in the application; and wherein a route handler function is attached to a route in the application and is configured to provide the second object from the middleware function to the route handler function, and to determine how to handle the second object.

Assignees

Inventors

Classifications

  • G06F9/548Primary

    Object oriented; Remote method invocation [RMI] (non-remote method invocation G06F9/449) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12093758B2 cover?
Concepts for middleware in a web framework are presented. One example comprises defining a target object type configured to hold results of a middleware function. A first object for an application is received and a process of the middleware function is performed, using the first object, to generate a process result. Based on the process result, a second object of the target object type is gener…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F9/548. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 17 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).