1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix: typing for Y combinator

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2023-12-21 16:25:35 +01:00
parent 5ac47440a1
commit 12ef79184b
3 changed files with 14 additions and 13 deletions

View File

@@ -82,6 +82,11 @@ var (
O.Of[IOE.IOEither[error, []byte]],
Body.Set,
)
// WithBytes creates a [BuilderBuilder] for a request body using bytes
WithBytes = F.Flow2(
IOE.Of[error, []byte],
WithBody,
)
// WithContentType adds the [H.ContentType] header
WithContentType = WithHeader(H.ContentType)
// WithAuthorization adds the [H.Authorization] header