def head

bend-kit-sigv4@0.11.0.1 · sigv4.bend:1055

import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4
import Base
import bend-kit-http@0.38.1.1/http.bend as Http
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

1055# HeadObject. A missing key is ErrS3{404, "", ""}: HEAD has no error body.
1056def head(c: Client, bucket: String, key: String) -> IO(Client & Result<&1, &1, Err, Meta>):
1057  do IO<Client & Result<&1, &1, Err, Meta>>:
1058    x : Client & Result<&1, &1, Err, Http.Res> <- call(c, "HEAD", bucket, key, "", Http.empty(), Bytes.new(0))
1059    return head.done(x)

Uses (14)

Used by (0)

No other definition uses this definition.