Effect CommunityEC
Effect Community10mo ago
6 replies
Janosch

Making Headers Optional and Transforming Input Schema with HttpApi in Effect TS

Is it possible with HttpApi to make headers optional when using a derived client. Schema.optional and Schema.withDefaults can be used, but when calling the function of my HttpApiClient it still requires me to set all headers.
Also I'd be interested in using a Schema.transform to transform a simple input schema into a more complex nested body structure.
Was this page helpful?