More than anything else, the SRP HTTP Framework is designed to enable OpenInsight developers to build web APIs. This means it is designed with the OpenInsight developer in mind. It attempts to bring out the best of the OpenInsight development environment. We would suggest that this matches the goals of the original OECGI (OICGI once upon a time) and traditional INET routines. However, whether using INET or the RESTful architecture that the SRP HTTP Framework provides, some fundamental knowledge of HTTP is necessary. Our toolkit attempts to encourage proper use of the HTTP protocol. Therefore, our documentation will rely heavily upon HTTP communication terminology. If you are unfamiliar with this, we encourage you to go through the following basic primer on HTTP.

HTTP communications is analogous to making a function call. Consider these similarities:

With that high-level comparison in mind, let’s examine the anatomy of the two basic HTTP means of communication: Requests and Responses:

Finally, successful APIs know how to accommodate or negotiate specific requests using the HTTP headers: