plainTextParser() — fastify Function Reference
Architecture documentation for the plainTextParser() function in helper.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 8412da9e_278d_f269_10b5_4b0f214cae28["plainTextParser()"] f0958ec4_011b_97b2_8846_edbd37831a68["helper.js"] 8412da9e_278d_f269_10b5_4b0f214cae28 -->|defined in| f0958ec4_011b_97b2_8846_edbd37831a68 style 8412da9e_278d_f269_10b5_4b0f214cae28 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/helper.js lines 474–489
module.exports.plainTextParser = function (request, callback) {
let body = ''
request.setEncoding('utf8')
request.on('error', onError)
request.on('data', onData)
request.on('end', onEnd)
function onError (err) {
callback(err, null)
}
function onData (chunk) {
body += chunk
}
function onEnd () {
callback(null, body)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does plainTextParser() do?
plainTextParser() is a function in the fastify codebase, defined in test/helper.js.
Where is plainTextParser() defined?
plainTextParser() is defined in test/helper.js at line 474.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free