import {HttpMessage} from "@http4t/core/contract"; import {success} from "@http4t/result"; import {MessageLens, RoutingResult} from "../lenses"; export class EmptyLens implements MessageLens { async get(_message: TMessage): Promise> { return success(undefined); } async set(into: SetInto, value: undefined): Promise { return into; } } export function empty(): EmptyLens { return new EmptyLens(); }