Home / Function/ removeContentTypeParser() — fastify Function Reference

removeContentTypeParser() — fastify Function Reference

Architecture documentation for the removeContentTypeParser() function in content-type-parser.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  2ef7be2d_39ac_4e25_0ccc_3bd4ef9a3796["removeContentTypeParser()"]
  b47c11f3_fe3b_64dc_0f58_921e5921ec45["content-type-parser.js"]
  2ef7be2d_39ac_4e25_0ccc_3bd4ef9a3796 -->|defined in| b47c11f3_fe3b_64dc_0f58_921e5921ec45
  4b03b8fc_4598_2d56_a9c9_4aa5da0e0ba6["remove()"]
  2ef7be2d_39ac_4e25_0ccc_3bd4ef9a3796 -->|calls| 4b03b8fc_4598_2d56_a9c9_4aa5da0e0ba6
  style 2ef7be2d_39ac_4e25_0ccc_3bd4ef9a3796 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/content-type-parser.js lines 370–382

function removeContentTypeParser (contentType) {
  if (this[kState].started) {
    throw new FST_ERR_CTP_INSTANCE_ALREADY_STARTED('removeContentTypeParser')
  }

  if (Array.isArray(contentType)) {
    for (const type of contentType) {
      this[kContentTypeParser].remove(type)
    }
  } else {
    this[kContentTypeParser].remove(contentType)
  }
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does removeContentTypeParser() do?
removeContentTypeParser() is a function in the fastify codebase, defined in lib/content-type-parser.js.
Where is removeContentTypeParser() defined?
removeContentTypeParser() is defined in lib/content-type-parser.js at line 370.
What does removeContentTypeParser() call?
removeContentTypeParser() calls 1 function(s): remove.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free