Skip to content

Instantly share code, notes, and snippets.

View anirudhprabhakaran3's full-sized avatar
🖥️
Crunching Data

Anirudh Prabhakaran anirudhprabhakaran3

🖥️
Crunching Data
View GitHub Profile
@anirudhprabhakaran3
anirudhprabhakaran3 / proposal.md
Last active March 30, 2024 07:33
[GSoC 2024] Configurable Content Type Parsing

[GSoC 2024] Configurable Content Type Parsing

Introduction / Motivation

This project is motivated by an attempt for modernizing the HTTPRequest object. One of the changes proposed is adding a content-aware request.data property. Currently, we have request.POST already parsing form data - this project aims to:

  • add a request.data that will from now store this data (request.POST will alias this variable, to ensure backward compatibility)
  • provide a general class (ContentParser/AbstractContentParset) that can be extended. This class will implement (at least) the following functions:
@anirudhprabhakaran3
anirudhprabhakaran3 / script.js
Created July 1, 2021 04:48
Example of AJAX
function loadDoc(){
var xhttp = new XMLHttpRequest();
xhttp.onreadystate = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
}
}
@anirudhprabhakaran3
anirudhprabhakaran3 / example.html
Last active July 1, 2021 04:48
Example of AJAX
<!DOCTYPE html>
<html>
<body>
<div id="demo">
<h2> Let AJAX change this text.</h2>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>
</body>
</html>