Sha256: b324b380dda7c5259b7a64a01c8d7603954cba6a9a39caab7e44c0ddc7b73e8e
Contents?: true
Size: 706 Bytes
Versions: 8
Compression:
Stored size: 706 Bytes
Contents
# typed: strict # frozen_string_literal: true module PlugApp module HTTP extend T::Sig OK = "OK" OK_I = 200 CREATED = "Created" CREATED_I = 201 NO_CONTENT = "No Content" NO_CONTENT_I = 204 NOT_FOUND = "Not Found" NOT_FOUND_I = 404 BAD_REQUEST = "Bad Request" BAD_REQUEST_I = 400 UNAUTHORIZED = "Unauthorized" UNAUTHORIZED_I = 401 FORBIDDEN = "Forbidden" FORBIDDEN_I = 403 NOT_ACCEPTABLE = "Not Acceptable" NOT_ACCEPTABLE_I = 406 SERVICE_UNAVAILABLE = "Service Unavailable" SERVICE_UNAVAILABLE_I = 503 sig { params(status: Integer).returns(T::Boolean) } def status_ok?(status) status == OK_I end end end
Version data entries
8 entries across 8 versions & 1 rubygems