http overview
Service to handle http requests.
Added in v2.0.0
Table of contents
capabilities
HttpSvc (interface)
Signature
export interface HttpSvc {
http: Http;
}
Added in v2.0.0
instances
http
Live instance of Http
service.
Signature
export declare const http: (Env: HttpEnv) => Http;
Added in v2.0.0
model
Http (interface)
Defines the Http
service capabilities.
Signature
export interface Http {
post: <A>(path: string, body: A, token: string) => TaskEither<Error, unknown>;
patch: <A>(
path: string,
body: A,
token: string
) => TaskEither<Error, unknown>;
}
Added in v2.0.0