def to_resp_array(*parts: bytes):
    """Builds a RESP request"""

    request = bytearray(b'*%d\r\n' % len(parts))

    for part in parts:
        request += b'$%d\r\n' % len(part)
        request += b'%b\r\n' % part

    return bytes(request)