Skip to content

100 Continue

Tells the client ‘Everything is good so far, keep sending your request body.’ Useful for large uploads so the client doesn’t waste time sending data if the headers are rejected.

Use this when the client is about to send a massive file (like a 4K video). The client sends the headers first, and you respond with 100 Continue to say ‘Looks good, upload the rest’. This prevents the client from wasting bandwidth if you were going to reject it anyway.

import { HttpCode, get } from 'shokupan';
export const getResource = get('/resource', () => {
return { message: 'Continue' };
}).pipe(HttpCode(100));