Buckets:
| export function extractQueryParamsToHeaders(req, headers) { | |
| const bouquet = req.query.bouquet; | |
| const mix = Array.isArray(req.query.mix) ? req.query.mix.join(',') : req.query.mix; | |
| const gradio = req.query.gradio; | |
| const streamable = req.query.streamable; | |
| const forceauth = req.query.forceauth; | |
| const login = req.query.login; | |
| const auth = req.query.auth; | |
| const noImageContent = Array.isArray(req.query.no_image_content) | |
| ? req.query.no_image_content[0] | |
| : req.query.no_image_content; | |
| if (bouquet) { | |
| headers['x-mcp-bouquet'] = bouquet; | |
| } | |
| if (mix) { | |
| headers['x-mcp-mix'] = mix; | |
| } | |
| if (gradio) { | |
| headers['x-mcp-gradio'] = gradio; | |
| } | |
| if (streamable) { | |
| headers['x-mcp-streamable'] = streamable; | |
| } | |
| if (typeof noImageContent === 'string') { | |
| const normalized = noImageContent.trim().toLowerCase(); | |
| if (normalized === 'true' || normalized === '1' || normalized === 'yes' || normalized === '') { | |
| headers['x-mcp-no-image-content'] = 'true'; | |
| } | |
| } | |
| if (forceauth || login !== undefined || auth !== undefined) { | |
| headers['x-mcp-force-auth'] = 'true'; | |
| } | |
| } | |
| //# sourceMappingURL=query-params.js.map |
Xet Storage Details
- Size:
- 1.24 kB
- Xet hash:
- 4ae7e847b4c77aa66a9ebd4490c0e89e41592ebc81f8c5b0db71c69b4ac6b128
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.