Effect CommunityEC
Effect Community2y ago
8 replies
shaugh

Updating Code for Latest Platform Version: Creating a Layer with Client Options

How do I translate this code to the latest version of platform?
export const withOptions = (options?: RequestInit) =>
  Layer.sync(Http.client.Client, () => Http.client.fetch(options));

i.e. create a layer with a client that has options set.
Was this page helpful?