MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / bodyParser

Method bodyParser

packages/rest/src/rest.server.ts:946–953  ·  view source on GitHub ↗

* Bind a body parser to the server context * @param parserClass - Body parser class * @param address - Optional binding address

(
    bodyParserClass: Constructor<BodyParser>,
    address?: BindingAddress<BodyParser>,
  )

Source from the content-addressed store, hash-verified

944 * @param address - Optional binding address
945 */
946 bodyParser(
947 bodyParserClass: Constructor<BodyParser>,
948 address?: BindingAddress<BodyParser>,
949 ): Binding<BodyParser> {
950 const binding = createBodyParserBinding(bodyParserClass, address);
951 this.add(binding);
952 return binding;
953 }
954
955 /**
956 * Configure the `basePath` for the rest server

Callers 3

givenAClientFunction · 0.45

Calls 2

createBodyParserBindingFunction · 0.85
addMethod · 0.65

Tested by 1

givenAClientFunction · 0.36